fork download
  1. class StringDemo768
  2. {
  3. public static void main (string[] args )
  4. {
  5. String str;
  6. String second
  7. int len;
  8.  
  9. str = new string ("Elementary my dear Watson!")
  10.  
  11. len= str.length();
  12.  
  13. System.out.println("The Length is "+ len);
  14.  
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(1, 5) Error: undeclared identifier: 'class'
stdout
Standard output is empty