Question #299821

create a java program will concatenate the basic information of the students given the default variables name

Expert's answer

public class Main{

    public static void main(String[] args){

        String name = "Tom";
        int age = 20;
        System.out.println(name + " " + age);

    }

}
LATEST TUTORIALS
APPROVED BY CLIENTS