Java Ja oder keine Schleife

import java.util.Scanner;

public class Temperature
{
 public static void main(String[] args){

    Scanner input = new Scanner (System.in);
    do{
    
    
     System.out.println("Would you like to continue?(yes/no)");
        prompt = input.next();
    }while(prompt.equalsIgnoreCase("yes")); 
  }
 }
jerson sombilon