What is wrong with this method definition?

mymethodname {



Write a program and give it a meaningful name as per the recommended convention and create three methods and invoke them like so:

  • The main method takes in one program argument and displays "Welcome " + name of the person invoking the program sent is as a program argument.

  • Main method then invokes the method with the name displayJavaLearningTips In this method print out 1 or 2 sentences of what tips you would provide to a person trying to learn Java programming.

  • displayJavaLearningTips will then invoke another method called sayGoodbye which will print out "Good bye" + name.
    Note: This problem requires you to send the program argument received in the main method to other methods. Can you do that?

results matching ""

    No results matching ""