Read & Write using string (Name and Father name)

 import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
String s1, s2;

Scanner scan = new Scanner(System.in);
System.out.print("Please enter your name: ");
s1 = scan.nextLine();

System.out.print("Please enter your father name: ");
s2 = scan.nextLine();

System.out.println(s1+" "+s2);
}
}
=================


একটি মন্তব্য পোস্ট করুন