Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Extend-your-language/Java/extend-your-language-1.java
Normal file
13
Task/Extend-your-language/Java/extend-your-language-1.java
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
public class If2 {
|
||||
|
||||
public static void if2(boolean firstCondition, boolean secondCondition,
|
||||
Runnable bothTrue, Runnable firstTrue, Runnable secondTrue, Runnable noneTrue) {
|
||||
if (firstCondition)
|
||||
if (secondCondition)
|
||||
bothTrue.run();
|
||||
else firstTrue.run();
|
||||
else if (secondCondition)
|
||||
secondTrue.run();
|
||||
else noneTrue.run();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue