Howdy, Stranger!

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



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?


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