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 static void main (String[] args) throws java.lang.Exception
  11. {
  12. String str1 = "300‌​0";
  13. String str2 = "44‌​545.0";
  14.  
  15. str1.chars().forEach(c -> System.out.println((char)c + " " + (int) ((char)c)));
  16. System.out.println("");
  17. System.out.println("--------------------");
  18. str2.chars().forEach(c -> System.out.println((char)c + " " + (int) ((char)c)));
  19. }
  20. }
Success #stdin #stdout 0.08s 711168KB
stdin
Standard input is empty
stdout
3 51
0 48
0 48
‌ 8204
​ 8203
0 48

--------------------
4 52
4 52
‌ 8204
​ 8203
5 53
4 52
5 53
. 46
0 48