Assign names of your five friends to five different variables. Write a program tp print your friends name in different lines About the author Kaylee
Answer: public class friends { public static void main() { char a=Arun; char b=Bhavesh; char c=Chaitanya; char d=Devansh; char e=Rohit; System.out.println(a); System.out.println(b); System.out.println(c); System.out.println(d); System.out.println(e); } } Reply
Answer:
public class friends
{
public static void main()
{
char a=Arun;
char b=Bhavesh;
char c=Chaitanya;
char d=Devansh;
char e=Rohit;
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(d);
System.out.println(e);
}
}