Advertisement
thenewboston

Java Programming Tutorial - 14 - Using Multiple Classes

Aug 22nd, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. class apples{
  2.    public static void main(String args[]){
  3.    
  4.       tuna tunaObject = new tuna();
  5.       tunaObject.simpleMessage();
  6.    
  7.    }
  8. }
  9.  
  10.  
  11. public class tuna {
  12.    public void simpleMessage(){
  13.       System.out.println("This is another class");
  14.    }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement