Advertisement
Guest User

Untitled

a guest
Oct 26th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. public class Hoge {
  2.     String str;
  3.     public Hoge(String str) {
  4.         this.str = str;
  5.     }
  6.     public static void main(String[] args) {
  7.         Hoge h = new Hoge("test");
  8.         System.out.println(h); // => testと出力されるようにしたい
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement