fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public char c[] = new char[10];
  11.  
  12. public void readLine() {
  13. try{
  14. for(int i = 0; i < 10; i++) {
  15. c[i] = (char) System.in.read();
  16. System.out.println("i " + i);
  17. System.out.println("char " + c[i]);
  18. }
  19. } catch(IOException e) {
  20. System.out.println("Blad");
  21. }
  22. }
  23. public static void main (String[] args) throws java.lang.Exception
  24. {
  25. Ideone main = new Ideone();
  26. main.readLine();
  27. }
  28. }
Success #stdin #stdout 0.08s 33708KB
stdin
qazxswedcv
stdout
i 0
char q
i 1
char a
i 2
char z
i 3
char x
i 4
char s
i 5
char w
i 6
char e
i 7
char d
i 8
char c
i 9
char v