Skip to content

Instantly share code, notes, and snippets.

@Redfire75369
Created October 9, 2019 08:15
Show Gist options
  • Save Redfire75369/4c63070d132cd8727859e01b571ac762 to your computer and use it in GitHub Desktop.
Save Redfire75369/4c63070d132cd8727859e01b571ac762 to your computer and use it in GitHub Desktop.
public final class Print {
private str = new String();
public Print(String string) {
this.str = string;
}
public void print() {
system.out.println(str);
}
}
public final class Thanks implements Runnable {
public static void main(String[] args) {
try {
Print println = new Print("Thank You For Attending This Ted Talk");
println.print();
} catch (Exception error) {
error.printStackTrace();
}
}
}
@joseywoermann
Copy link

Thank you, this helped me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment