Howdy, Stranger!

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

Categories

Hello

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?

Comments

  • krishbalodakrishbaloda Member Posts: 45
    public class GreetClass{

    void GreetClass(){

    }

    public static void main(String [] args)
    {
    GreetClass nm = new GreetClass();
    nm.Greet("John","Jene");


    }
    //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.
  • krishbalodakrishbaloda Member Posts: 45
    good luck!!!
Sign In or Register to comment.