Advertisement
Guest User

demo

a guest
Mar 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public static class Klasa {
  2.  
  3. public Klasa() {
  4. // required empty ctor
  5. }
  6.  
  7. public int Run() {
  8. // TODO implement me
  9. return -1;
  10. }
  11. }
  12.  
  13. public static class MainRunner() {
  14.  
  15. public static void main(String[] args) {
  16. // Kreiram klasu
  17. // Klasa se kreirala ovde, u ovom trenutku
  18. Klasa myClass = new Klasa();
  19. // zovem metodu na njoj
  20. int retVal = myClass.Run();
  21. System.out.println("Klasa je vratila: "+retVal);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement