Computer Science, asked by rujutamukherjee2006, 5 hours ago

write a program using input parameters in java​

Answers

Answered by 970074566
0

Answer:

public class Main {

 static void myMethod(String fname) {

   System.out.println(fname + " Refsnes");

 }

 public static void main(String[] args) {

   myMethod("Liam");

   myMethod("Jenny");

   myMethod("Anja");

 }

}

// Liam Refsnes

// Jenny Refsnes

// Anja Refsnes

Explanation:

There you go

Similar questions