/* package whatever; // don't place package name! */
1.package pkgA;
2.public class Foo {
3. int a = 5;
4. protected int b = 6;
5. public int c = 7;
6.}
7.package pkgB;
8.import pkgA.*;
9.public class Baz {
10.
public static void main
(String[] args
) { 11. Foo f = new Foo();
12.
System.
out.
print(" " + f.
a); 13.
System.
out.
print(" " + f.
b); 14.
System.
out.
print(" " + f.
c); 15. }
16.}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKMS5wYWNrYWdlIHBrZ0E7CjIucHVibGljIGNsYXNzIEZvbyB7CjMuIGludCBhID0gNTsKNC4gcHJvdGVjdGVkIGludCBiID0gNjsKNS4gcHVibGljIGludCBjID0gNzsKNi59Cgo3LnBhY2thZ2UgcGtnQjsKOC5pbXBvcnQgcGtnQS4qOwo5LnB1YmxpYyBjbGFzcyBCYXogewoxMC4gcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoxMS4gRm9vIGYgPSBuZXcgRm9vKCk7CjEyLiBTeXN0ZW0ub3V0LnByaW50KCIgIiArIGYuYSk7CjEzLiBTeXN0ZW0ub3V0LnByaW50KCIgIiArIGYuYik7CjE0LiBTeXN0ZW0ub3V0LnByaW50KCIgIiArIGYuYyk7CjE1LiB9CjE2Ln0=
Main.java:3: error: class, interface, or enum expected
1.package pkgA;
^
Main.java:4: error: class, interface, or enum expected
2.public class Foo {
^
Main.java:5: error: illegal start of type
3. int a = 5;
^
Main.java:5: error: ';' expected
3. int a = 5;
^
Main.java:5: error: <identifier> expected
3. int a = 5;
^
Main.java:6: error: illegal start of type
4. protected int b = 6;
^
Main.java:6: error: ';' expected
4. protected int b = 6;
^
Main.java:7: error: illegal start of type
5. public int c = 7;
^
Main.java:7: error: ';' expected
5. public int c = 7;
^
Main.java:8: error: illegal start of type
6.}
^
Main.java:8: error: ';' expected
6.}
^
Main.java:10: error: illegal start of type
7.package pkgB;
^
Main.java:10: error: <identifier> expected
7.package pkgB;
^
Main.java:10: error: ';' expected
7.package pkgB;
^
Main.java:11: error: illegal start of type
8.import pkgA.*;
^
Main.java:11: error: ';' expected
8.import pkgA.*;
^
Main.java:11: error: <identifier> expected
8.import pkgA.*;
^
Main.java:12: error: illegal start of type
9.public class Baz {
^
Main.java:12: error: ';' expected
9.public class Baz {
^
Main.java:13: error: illegal start of type
10. public static void main(String[] args) {
^
Main.java:13: error: ';' expected
10. public static void main(String[] args) {
^
Main.java:14: error: not a statement
11. Foo f = new Foo();
^
Main.java:14: error: ';' expected
11. Foo f = new Foo();
^
Main.java:15: error: not a statement
12. System.out.print(" " + f.a);
^
Main.java:15: error: ';' expected
12. System.out.print(" " + f.a);
^
Main.java:16: error: not a statement
13. System.out.print(" " + f.b);
^
Main.java:16: error: ';' expected
13. System.out.print(" " + f.b);
^
Main.java:17: error: not a statement
14. System.out.print(" " + f.c);
^
Main.java:17: error: ';' expected
14. System.out.print(" " + f.c);
^
Main.java:18: error: not a statement
15. }
^
Main.java:18: error: ';' expected
15. }
^
Main.java:19: error: illegal start of type
16.}
^
Main.java:19: error: ';' expected
16.}
^
Main.java:19: error: reached end of file while parsing
16.}
^
34 errors