This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Basics { | |
| public static void main(String[] args) { | |
| int x; | |
| int y; | |
| int z; | |
| System.out.println(x + y + z); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Blue { | |
| public static void main(String[] args) { | |
| String s = null; | |
| System.out.print(s); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Basics1 { | |
| public void main(String[] args) { | |
| } | |
| } | |
| class Basics2 { | |
| public void main(String[] args) { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Violet { | |
| public static void main(String[] s) { | |
| System.out.print(s[1] + s[2] + s[3]); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A { | |
| public static void main(String[] args) { | |
| // Insira o código aqui. | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class X { | |
| public static void main(String[] args) { | |
| int i = 0; | |
| while (i++ < args.length) { | |
| System.out.print(args[i]); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Violet { | |
| int x; | |
| public static void main(String[] args) { | |
| int y; | |
| System.out.print("x=" + x); | |
| System.out.print(", y=" + y); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Basics { | |
| static int x = 1; | |
| void m(int i) { | |
| x++; | |
| i++; | |
| } | |
| public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Basics { | |
| private static int x = 1; | |
| static void m(int i) { | |
| x++; | |
| i++; | |
| } | |
| public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final class Aaa { | |
| int xxx; | |
| void yyy() { | |
| xxx = 1; | |
| } | |
| } |
OlderNewer