-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0efbaa9
commit 9cbdd69
Showing
12 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
..._1_the_basic_for_statement/DoubleFor.java → ..._1_the_basic_for_statement/NestedFor.java
This file contains 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
13 changes: 13 additions & 0 deletions
13
...es/test_candidates/ch_14_blocks_statements_and_patterns/sec_14_2_blocks/LabeledBlock.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
public class SimpleBlock { | ||
|
||
public static void main(String[] args) { | ||
label: | ||
{ | ||
other_label: | ||
{ | ||
System.out.println("passed"); | ||
} | ||
} | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...ces/test_candidates/ch_14_blocks_statements_and_patterns/sec_14_2_blocks/NestedBlock.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
public class NestedBlock { | ||
|
||
public static void main(String[] args) { | ||
{ | ||
{ | ||
System.out.println("passed"); | ||
} | ||
} | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
..._15_8_primary_expressions/sec_15_8_5_parenthesized_expressions/NestedParenExpression.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public class NestedParenExpression { | ||
public static void main(String[] args) { | ||
int a = (1 + 2 * (8 - 5)); | ||
System.out.println(a); | ||
System.out.println("passed"); | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
...essions/sec_15_8_primary_expressions/sec_15_8_5_parenthesized_expressions/SampleTest.java
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
..._15_8_primary_expressions/sec_15_8_5_parenthesized_expressions/SimpleParenExpression.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
public class SimpleParenExpression { | ||
public static void main(String[] args) { | ||
int a = (1 + 2); | ||
System.out.println(a); | ||
System.out.println("passed"); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...declarations/sec_8_4_3_method_modifiers/sec_8_4_3_3_final_methods/PrivateFinalMethod.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
public class PrivateFinalMethod { | ||
|
||
public static void main(String[] args) { | ||
OuterClass obj = new OuterClass(); | ||
obj.method(); | ||
System.out.println("passed"); | ||
} | ||
} | ||
|
||
class OuterClass { | ||
private final void method () {} | ||
} |
12 changes: 12 additions & 0 deletions
12
...clarations/sec_8_4_3_method_modifiers/sec_8_4_3_3_final_methods/ProtectedFinalMethod.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
public class ProtectedFinalMethod { | ||
|
||
public static void main(String[] args) { | ||
OuterClass obj = new OuterClass(); | ||
obj.method(); | ||
System.out.println("passed"); | ||
} | ||
} | ||
|
||
class OuterClass { | ||
protected final void method () {} | ||
} |
12 changes: 12 additions & 0 deletions
12
..._declarations/sec_8_4_3_method_modifiers/sec_8_4_3_3_final_methods/PublicFinalMethod.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
public class PublicFinalMethod { | ||
|
||
public static void main(String[] args) { | ||
OuterClass obj = new OuterClass(); | ||
obj.method(); | ||
System.out.println("passed"); | ||
} | ||
} | ||
|
||
class OuterClass { | ||
public final void method () {} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ations/sec_8_4_3_method_modifiers/sec_8_4_3_5_strictfp_methods/PrivateStrictFPMethod.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
public class PrivateStrictFPMethod { | ||
|
||
private static strictfp void method() {} | ||
|
||
public static void main(String[] args) { | ||
method(); | ||
System.out.println("passed"); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ions/sec_8_4_3_method_modifiers/sec_8_4_3_5_strictfp_methods/ProtectedStrictFPMethod.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
public class ProtectedStrictFPMethod { | ||
|
||
protected static strictfp void method() {} | ||
|
||
public static void main(String[] args) { | ||
method(); | ||
System.out.println("passed"); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...rations/sec_8_4_3_method_modifiers/sec_8_4_3_5_strictfp_methods/PublicStrictFPMethod.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
public class PublicStrictFPMethod { | ||
|
||
public static strictfp void method() {} | ||
|
||
public static void main(String[] args) { | ||
method(); | ||
System.out.println("passed"); | ||
} | ||
} |