Skip to content

Instantly share code, notes, and snippets.

@AlecsFerra
Last active April 20, 2021 15:43
Show Gist options
  • Save AlecsFerra/d0de58145b4a15411a443b7b3fed1a4e to your computer and use it in GitHub Desktop.
Save AlecsFerra/d0de58145b4a15411a443b7b3fed1a4e to your computer and use it in GitHub Desktop.
Java for loop example
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