fork download
  1.  
  2. import java.io.*;
  3.  
  4. public class Main{
  5.  
  6. public static void print(Object o){
  7. System.out.println(o);
  8. }
  9. public static void main(String[] arg) throws IOException {
  10. int number = 0;
  11. char c;
  12. while ((c = (char) br.read()) != '\n') {
  13. number*=10;
  14. number += (c - '0');
  15. print("character is '"+ c+"'");
  16. }
  17. print(number);
  18.  
  19. }
  20. }
Success #stdin #stdout 0.06s 380224KB
stdin
213
stdout
character is '2'
character is '1'
character is '3'
213