class Looking{ public static void main(String[] args) { String input = "1 2 a 3 45 6"; Scanner sc = new Scanner(input); int x = 0; do{ x = sc.nextInt(); System.out.println(x+" "); }while(x!=0); } }
public static void main(String[] args) {
String input = "1 2 a 3 45 6";
Scanner sc = new Scanner(input);
int x = 0;
do{
x = sc.nextInt();
System.out.println(x+" ");
}while(x!=0);
}
OCA(1z0-803_OCA1.7)MockExamPII
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.