+ 3

Whats wrong

package stone; import java.io; public class emma { public static void main(String[] args) { int a[] = new int[10]; for(int i, i<a, i++) { system.out.println('a'): } } }

1st Sep 2018, 12:41 AM
Stone
Stone - avatar
7 odpowiedzi
+ 7
1st Sep 2018, 4:05 AM
NimWing Yuan
NimWing Yuan - avatar
+ 2
oops i<a is not valid a is array nd object bt i is primitive data type.. better to use this for(int a:r){ System.out.println(r) }
3rd Sep 2018, 7:22 PM
Aarav Raj
Aarav Raj - avatar
+ 1
Too many mistakes... public class emma { public static void main(String[] args) { int a[] = new int[10]; for(int i=0; i<a.length; i++) { System.out.println('a'); } } }
1st Sep 2018, 1:35 AM
Steppenwolf
Steppenwolf - avatar
0
thanks but when is scanner class and bufferedreader class used?
1st Sep 2018, 3:37 PM
Stone
Stone - avatar
- 2
I'm attending first so I didn't no
1st Sep 2018, 5:46 PM
ravitha