Java: I have a switch statement in a do while loop that I can't seem to get out of

Java: I have a switch statement in a do while loop that I can't seem to get out of

If I enter start I get stuck in a loop printing "Starting..." If I enter end I get stuck in a loop printing "Ending the machine task"

import java.util.Scanner;

public class Application {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        System.out.println("Please enter some text here... ");
        String text = scan.nextLine();      

        do {
            switch(text) {

                case "start":
                System.out.println("Starting...");
                break;

                case "end":
                System.out.println("Ending the machine task");
                break;

                default:
                    System.out.println("Do not understand the command");
                    System.out.println("Please enter some text here... ");
                    text = scan.nextLine();
                    //break;
            }
        }
        while(!"start".equals(text) || !"end".equals(text));
        scan.close();       
    }
}   

If I enter start I get stuck in a loop printing "Starting..." If I enter end I get stuck in a loop printing "Ending the machine task"

My thinking is that maybe I'm not evaluating the strings in the while loop? I just want the program to end once start or end are entered by the user.

New to Java and I'm just trying out some things. I have been perusing other relatable questions here but haven't been able to identify what my problem might be. Appreciate any assistance though, thanks in advance.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Java Fundamentals: Learn Java for absolute beginners |Simpliv

Java Fundamentals: Learn Java for absolute beginners

Java Essentials : Learn Core Java From Basic to Advance

Learn Java Programming Using Practical Assignments. Start Building Back-end Web Applications Robust Test Automation Frameworks By End Of The Course. Learn More!

Fundamentos de Java: Aprende Java desde cero, sin misterios | Simpliv

Fundamentos de Java: Aprende Java desde cero, sin misterios