write a program using input parameters in java
Answers
Answered by
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
CBSE BOARD X,
3 hours ago
Biology,
3 hours ago
History,
3 hours ago
Environmental Sciences,
5 hours ago
Math,
7 months ago
Math,
7 months ago
Hindi,
7 months ago