Skip to content

Instantly share code, notes, and snippets.

@ninijay
Created September 28, 2016 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninijay/1a16b6daab37a81dfa20b2d6152ef6ee to your computer and use it in GitHub Desktop.
Save ninijay/1a16b6daab37a81dfa20b2d6152ef6ee to your computer and use it in GitHub Desktop.
java toString created by ninijay - https://repl.it/DjpA/0
class Main {
public static void main(String[] args) {
myClass cl = new myClass();
System.out.println(cl);
}
}
class myClass {
@Override
public String toString(){
return "Useful Debug Information";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment