Skip to content

Instantly share code, notes, and snippets.

@benjholla
Created November 10, 2016 19:51
Show Gist options
  • Save benjholla/7804bd18f2ca28880ae1d6e5ea7e7d97 to your computer and use it in GitHub Desktop.
Save benjholla/7804bd18f2ca28880ae1d6e5ea7e7d97 to your computer and use it in GitHub Desktop.
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