fork(17) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class ConcatDemo {
  8. public static void main(String[] args){
  9. String firstString = "This is";
  10. String secondString = " a concatenated string.";
  11. String thirdString = firstString+secondString;
  12. System.out.println(thirdString);
  13. }
  14. }
Success #stdin #stdout 0.06s 380224KB
stdin
Standard input is empty
stdout
This is a concatenated string.