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.

java

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Java Core (2020) | Java for beginners | Brush up your Java Skills | Get Hired

In this video we will learn about all the major concepts that come under Java Core . The course is very carefully designed and is made with keeping simplicit...

Java Multithreading Example | Multithreading in Java

Java Multithreading Tutorial With Example | Multithreading in Java. Multithreading is a process of executing multiple threads simultaneously.

Java File Class Tutorial | Java.io File Class in Java Example

Java File class represents the path of directories and files. It provides the methods for renaming, deleting, and obtaining the properties of file or directory.

Java Hashmap Example | HashMap in Java

Java HashMap is the part of Collections since JDK1.2. Java HashMap provides the underlying implementation of the Map interface of Java.