BadNewlinepublic class BadNewline extends Object DON'T DO THIS. THIS IS BAD CODE. |
Fields Summary |
---|
String | myName |
Constructors Summary |
---|
public BadNewline(String s)
myName = s;
|
Methods Summary |
---|
public static void | main(java.lang.String[] argv)
BadNewline jack = new BadNewline("Jack Adolphus Schmidt, III");
System.out.println(jack);
| public java.lang.String | toString()DON'T DO THIS. THIS IS BAD CODE.
return "BadNewlineDemo@" + hashCode() + "\n" + myName;
|
|