fork download
  1. // Create a string with a constructor
  2. String s1 = new String("Who let the dogs out?");
  3. // Just using "" creates a string, so no need to write it the previous way.
  4. String s2 = "Who who who who!";
  5. // Java defined the operator + on strings to concatenate:
  6. String s3 = s1 + s2;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(1, 2) Error: undeclared identifier: '//'
stdout
Standard output is empty