Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.