create a java program will concatenate the basic information of the students given the default variables name.
Hi my name is Dew C. Corpuz My Birhtday is on January 1 1997 I am 24 years old One of the student of BSIT
import java.util.Scanner;
class App {
public static void main(String[] args) {
Scanner keyBoard = new Scanner(System.in);
System.out.print("Ente the name: ");
String name = keyBoard.nextLine();
System.out.println("Hi my name is " + name
+ " My Birhtday is on January 1 1997 I am 24 years old One of the student of BSIT");
keyBoard.close();
}
}
Comments
Leave a comment