Hello everyone,
I am very new to java,
I am trying to create a public class Person see below:
public class Person {
public Person(String name,String LastName)
{
System.out.println("Name:"+name);
System.out.println("LastName:"+LastName);
}
public static void main(String[]args)
{
// how do I alert name:"John" and LastName"Doe"
}
}
Thank you in advance
I am very new to java,
I am trying to create a public class Person see below:
public class Person {
public Person(String name,String LastName)
{
System.out.println("Name:"+name);
System.out.println("LastName:"+LastName);
}
public static void main(String[]args)
{
// how do I alert name:"John" and LastName"Doe"
}
}
Thank you in advance