Guest User

Untitled

a guest
Nov 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public interface SomeClass{
  2. void doSomething();
  3. }
  4.  
  5. public class MainClass{
  6. public static void main(String args[]){
  7. SomeClass someClass = new SomeClass(){
  8. @Override
  9. void doSomething(){
  10. System.out.println("Any text");
  11. }
  12. }
  13. someClass.doSomething();
  14. }
  15. }
Add Comment
Please, Sign In to add comment