sbunciak

JavaPuzzle

Apr 7th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public class StrungOut {  
  2.     public static void main(String[] args) {  
  3.         String s = new String("Hello world");  
  4.         System.out.println(s);  
  5.     }  
  6. }  
  7.  
  8. class String {  
  9.     private final java.lang.String s;  
  10.  
  11.     public String(java.lang.String s) {  
  12.         this.s = s;  
  13.     }  
  14.  
  15.     public java.lang.String toString() {  
  16.         return s;  
  17.     }  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment