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
104 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(); 
 
      String courseName = "Java ";
      myGradeBook.displayMessage( courseName );
   }
 
}
 
class GradeBook
{
   public void displayMessage( String courseName )
   {
      System.out.printf( "Welcome to the grade book for\n%s!\n", 
         courseName );
   }
 
}
 
output
Welcome to the grade book for
Java !
 
answered Geek 15.3k points 16 41 63

Related questions

0 votes
1 answer 92 views
92 views
asked augustaina Sr Member 4.8k points 10 25 31
0 votes
1 answer 26 views
26 views
asked taye Sr Member 5k points 7 9 12
0 votes
1 answer 46 views
46 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 58 views
58 views
asked taye Sr Member 5k points 7 9 12
0 votes
2 answers 83 views
83 views
asked augustaina Sr Member 4.8k points 10 25 31
...