Guide me how to read below code to produce output.

Submitted by needhelp on
Hi, I don't know how to read the below code to produce the outputs. QUESTION:State the expected output from the below codes. [5] for(int x=5; x =100; x++) { if(x % 10) ==0) break; System.out.println(x); } QUESTION: Trace the following code, and produce its outputs. [5] String data = ‘’data base’’; int x = data.length(); int y = data.indexOf(‘a’); int z = data.lastIndexOf(‘g’); System.out.println(x); System.out.println(y); System.out.println(z); System.out.println(10%x); System.out.println(data.equals(‘’database’’));