Write a program in BlueJ as per the following instructions:
Class name : First
The program displays: your name, father name and postal address.
Answers
Answered by
18
class first
{
public static void main (String args [])
{System.out. println (name: ........);
{System.out.println (father name:......);
{System.out.println (postal address:........);
}
}
}
{
public static void main (String args [])
{System.out. println (name: ........);
{System.out.println (father name:......);
{System.out.println (postal address:........);
}
}
}
OMG6740:
welcm Sis6740. ; )
Answered by
8
public class First
{
public void comp(String s, String fthrname, String posadd)
{
System.out.printn("Name:" + s);
System.out.println(Father's name:" +fthrname);
System.out.println("Postal Address:" +posadd);
}
}
{
public void comp(String s, String fthrname, String posadd)
{
System.out.printn("Name:" + s);
System.out.println(Father's name:" +fthrname);
System.out.println("Postal Address:" +posadd);
}
}
Similar questions