How i can add while loop here?
import java.util.*; public class Switch { public static void main(String[] args) { int x, y, result , choice; Scanner input = new Scanner (System.in); System.out.print("Enter First Number:"); x = input.nextInt(); System.out.print("Enter Second Number:"); y = input.nextInt(); System.out.println("Choose an opration"); System.out.println("1-addition"); System.out.println("2-substraction"); System.out.println("3-multiplication"); System.out.println("4-divition"); System.out.println("5-exit"); System.out.println("enter your choice"); choice= input.nextInt(); switch (choice) { case 1: result = x + y; System.out.format("Addition is:\n" +result); break; case 2: result = x - y; System.out.format("substraction is:\n"+ result); break; case 3: result = x * y; System.out.format("multiplication is:\n"+result); break; case 4: result = x / y; System.out.format("division is:\n"+result); break; case 5: break; default: System.out.println("choose only a number from 1-5"); break; } } }