search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
92 views
asked Sr Member 4.8k points 10 25 31

1 Answer

0 votes
public class MainClass
{
   public static void main( String args[] )
   {
      GradeBook myGradeBook = new GradeBook();

      myGradeBook.displayMessage();
   }
}
class GradeBook
{
   public void displayMessage()
   {
      System.out.println( "Welcome to the Grade Book!" );
   }
}
output
Welcome to the Grade Book!
it is an animal!
answered Expert 11.4k points 14 22 28

Related questions

0 votes
1 answer 104 views
104 views
asked augustaina Sr Member 4.8k points 10 25 31
0 votes
1 answer 57 views
57 views
asked sara Guru 24.6k points 29 52 81
0 votes
1 answer 88 views
88 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 88 views
0 votes
1 answer 89 views
89 views
asked augustaina Sr Member 4.8k points 10 25 31
...