Question: public class User { public static void printInfo ( String name, int age ) { System.out.println ( name + , + age )

public class User {
public static void printInfo(String name, int age){
System.out.println(name +","+ age);
}
public static void main (String [] args){
String userName1= "Sam";
String userName2= "Bob";
int userAge1=20;
int userAge2=23;
printInfo(userName1, userAge1);
printInfo(userName2, userAge2);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!