Developer community
0 votes
97 views
asked by Sr Member (4.8k points) 10 23 31 | 97 views

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 by Geek (15.3k points) 15 40 60

Related questions

0 votes
1 answer
asked by augustaina Sr Member (4.8k points) 10 23 31 | 90 views
0 votes
1 answer
asked by taye Sr Member (5k points) 7 9 12 | 26 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 29 | 45 views
0 votes
1 answer
asked by taye Sr Member (5k points) 7 9 12 | 53 views
0 votes
2 answers
asked by augustaina Sr Member (4.8k points) 10 23 31 | 80 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users