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
return actualValue < maximumValue; |
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
if(actualValue < maximumValue) { | |
return True; | |
} else { | |
return False; | |
} |
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
public class ShowIf { | |
public void printWay(boolean A, boolean B) { | |
if(A && B) { | |
System.out.println("A ist wahr, und auch B"); | |
} else if(A) { | |
System.out.println("A ist wahr, aber nicht B"); | |
} else if(B) { | |
System.out.println("B ist wahr, aber nicht A"); | |
} else { | |
System.out.println("weder A noch B ist wahr"); |
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
public class ShowIf { | |
public void printWay(boolean A, boolean B) { | |
if(A) { | |
if(B) { | |
System.out.println("A ist wahr, und auch B"); | |
} else { | |
System.out.println("A ist wahr, aber nicht B"); | |
} | |
} else { | |
if(B) { |
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
sut.printWay(true, true); | |
sut.printWay(true, false); | |
sut.printWay(false, true); | |
sut.printWay(false, false); |
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
public class ShowIf { | |
public void printWay(boolean A, boolean B) { | |
if(A) { | |
System.out.println("A is true, but B is not"); | |
} | |
if(B) { | |
System.out.println("B is true, but A is not"); | |
}else{ | |
System.out.println("Both A and B aren't true"); | |
} |
NewerOlder