Suppose I have a class with a constructor that takes in two strings
is it okay to write the constructor this way?
public class box{
private String s1;
private String s2;
public box(**String str1,String str2**){
s1=str1;
s2=str2; }
}
Or can I just say
public box(String str1,str2)?