Hello, I'm brand new to this and I'm in need of some help.
How would you create a called Greet that is passed two parameters?


  • public class GreetClass{

    void GreetClass(){


    public static void main(String [] args)
    GreetClass nm = new GreetClass();

    //method with to params starts
    public void Greet(String nameFrom, String nameTo)
    System.out.println(name+" Welcomes "+msg);
    //method with to params ends

    i think this is what u need.
  • good luck!!!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion