This content has been marked as final. Show 2 replies
Welcome to the forum!
create a class called exercise and create two methods, first method one parameter, second method two parameters.the method should print these parameter values.in the mainmethod create an instance of class exercise and invoke these two methods
The forums are for helping people with understanding Java and how to use it and helping them find and fix problems in their code.
This is not a coding service. You have to write the code and if you have problems post the code you have written (use \
on the line before and the line after any code to preserve formatting), the output you get and the output you expect to get. If you are learning Java you should go through The Java Tutorials http://docs.oracle.com/javase/tutorial/index.html There is a Getting Started section that has the traditional 'HelloWorld' application http://docs.oracle.com/javase/tutorial/getStarted/application/index.html And there is a section for classes, objects, methods and how to create and use them. http://docs.oracle.com/javase/tutorial/java/javaOO/index.html Good luck!