Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class Trokis {
- private String zaloop;
- public static void main(String[] args) throws IOException {
- Trokis One = new Trokis();
- System.out.println(One.getResult());
- }
- private String getScan() throws IOException {
- BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
- return reader.readLine();
- }
- private String getResult() throws IOException {
- zaloop = getScan();
- char myChar = zaloop.charAt(zaloop.length() - 1);
- zaloop = zaloop.substring(0, zaloop.length() - 1);
- return myChar + zaloop;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement