Advertisement
vstoyanov

16 задача

Mar 30th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1.  
  2. import com.sun.xml.internal.bind.v2.runtime.reflect.opt.Const;
  3.  
  4. import java.util.Scanner;
  5.  
  6. public class Main {
  7.  
  8.     public static void main(String[] args) {
  9.  
  10. String first="Hello";
  11.         String second="World";
  12.  
  13.         Object result=first+" "+second;
  14.  
  15.         String resultToString=result.toString();
  16.  
  17.  
  18. System.out.println(result);
  19.         System.out.println(resultToString);
  20.  
  21.  
  22.  
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement