System.out.println
Today I am working on Basic while loop for my App Development (Java) class, with user input and I have no idea who to write the code string they need
Here is the code
import java.util.Scanner;
public class NonNegativeLooper {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
int userNum = 0;
while (/* Your solution goes here */) { // here is where my code goes
System.out.println(“Body”);
userNum = scnr.nextInt();
}
System.out.println(“Done.”);
return;
}
}
please help
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"
