Created
October 9, 2019 08:15
-
-
Save Redfire75369/4c63070d132cd8727859e01b571ac762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, this helped me a lot!