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 JavaTest {
- public static void main(String[] args) {
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- System.out.println("Copy and paste the values coding level 2 and press enter:");
- String area = "";
- try {
- area = br.readLine();
- } catch (IOException e) {
- e.printStackTrace();
- }
- String[] strList = area.split(",");
- StringBuffer result = new StringBuffer();
- for (int i = 0; i < strList.length; i++) {
- char c = ' ';
- if (!" ".equals(strList[i])) {
- int ord = Integer.parseInt(strList[i]);
- c = (char)(94 - ord + 32 + 32);
- }
- result.append(c);
- }
- System.out.println(result);
- }
- }
Add Comment
Please, Sign In to add comment