Created
November 10, 2016 19:51
-
-
Save benjholla/7804bd18f2ca28880ae1d6e5ea7e7d97 to your computer and use it in GitHub Desktop.
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
package examples; | |
public class SliceExample { | |
public static void main(String[] args) { | |
/* 1 */ | |
int i = readInput(); | |
/* 2 */ | |
if(i == 1){ | |
/* 3 */ | |
System.out.println("test"); | |
} else { | |
/* 4 */ | |
i = 1; | |
} | |
/* 5 */ | |
System.out.println(i); | |
/* 6 */ | |
return; // terminate program | |
} | |
private static int readInput(){ | |
return 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment