Last active
April 20, 2021 15:43
-
-
Save AlecsFerra/d0de58145b4a15411a443b7b3fed1a4e to your computer and use it in GitHub Desktop.
Java for loop example
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
public class EnterpriseCoreApplication { | |
public static void main(String... args) { | |
for (java.lang.Integer i = new java.lang.Integer(0); i.compareTo(new java.lang.Integer(69)) < 0; i = EnterpriseCoreApplication.IntegerIncrement(i)) { | |
System.out.println(i.toString()); | |
} | |
} | |
public static java.lang.Integer IntegerIncrement(final java.lang.Integer inputInteger) { | |
if (inputInteger.compareTo(Integer.MAX_VALUE) == 0) { | |
throw new RuntimeException("Business supercazzola enterprise i32 overflow"); | |
} | |
final int unboxedInteger = inputInteger.intValue(); | |
final int newUnboxedInteger = java.lang.Integer.sum(unboxedInteger, 1); | |
java.lang.Integer returnBoxedInteger = new java.lang.Integer(newUnboxedInteger); | |
return returnBoxedInteger; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment