Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Hoge {
- String str;
- public Hoge(String str) {
- this.str = str;
- }
- public static void main(String[] args) {
- Hoge h = new Hoge("test");
- System.out.println(h); // => testと出力されるようにしたい
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement