Skip to content

Instantly share code, notes, and snippets.

@Naba0123
Created October 12, 2015 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Naba0123/19dfac1b66218c4289f7 to your computer and use it in GitHub Desktop.
Save Naba0123/19dfac1b66218c4289f7 to your computer and use it in GitHub Desktop.
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int i = -1;
String out = "";
while (i++ < line.length() - 1) {
out += line.charAt(i++);
}
System.out.println(out);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment