Java Beginner: Lesson 6
do while loop Same as the while loop, shown in the lesson 5 , there are other loops which make possible to repeat an action or a set of actions. In this lesson we will cover the do while loop. In the main method which in the previous lesson was as follow: Example code: public static void main(String[] args) { // TODO code application logic here Scanner scanner = new Scanner(System.in); double nr1=0; double nr2=0; String operation; double result =0; while( true ){ System.out.println("**********NEW OPERATION*********"); System.out.println("Give the first number: "); nr1= scanner.nextDouble(); System.out.println("Give the operation: "); operation = scanner.next(); System.out.println("Give the second number: "); nr2= scanner.nextDouble(); if(operation.equalsIgnoreCase("+...