Advertisement
icabit

notes java :)

Jun 23rd, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. clsinput objinput = new clsinput (); // declared in main class
  2. clsinput is the bane if the 2nd class
  3. 1st class will always be named main
  4. objinput will be the one called in class main
  5.  
  6. wihout return
  7. <modifier> void <method_name_verb>();
  8. {
  9. }
  10. with return
  11. <modifier> <data type"int,bolean,etc> <method_name_verb>();
  12. {
  13. int s=0;
  14. //statements
  15. return s;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement