SHOW:
|
|
- or go back to the newest paste.
1 | - | import java.io.*; |
1 | + | import java.io.BufferedReader; |
2 | import java.io.IOException; | |
3 | - | String Zaloop; |
3 | + | import java.io.InputStreamReader; |
4 | ||
5 | - | String getScan() throws IOException { |
5 | + | |
6 | - | BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); |
6 | + | |
7 | private String zaloop; | |
8 | ||
9 | - | public String getResult() throws IOException { |
9 | + | public static void main(String[] args) throws IOException { |
10 | - | Zaloop=getScan(); |
10 | + | Trokis One = new Trokis(); |
11 | - | char myChar = Zaloop.charAt(Zaloop.length()-1); |
11 | + | |
12 | - | Zaloop=Zaloop.substring(0,Zaloop.length()-1); |
12 | + | |
13 | - | String Rezult=myChar +Zaloop; |
13 | + | |
14 | - | return Rezult; |
14 | + | private String getScan() throws IOException { |
15 | BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); | |
16 | return reader.readLine(); | |
17 | } | |
18 | ||
19 | private String getResult() throws IOException { | |
20 | zaloop = getScan(); | |
21 | - | public static void main(String[] args) throws IOException{ |
21 | + | char myChar = zaloop.charAt(zaloop.length() - 1); |
22 | - | Trokis One=new Trokis(); |
22 | + | zaloop = zaloop.substring(0, zaloop.length() - 1); |
23 | return myChar + zaloop; | |
24 | } | |
25 | } |