Question #290261

Using Loop Statement, create a program that will be able to display student information such as, last name, first name, middle name, address, contact number, date of birth: mm/dd/yyyy.




Expert's answer

public class Main {
    public static void main(String[] args) {
        String[] studentInformation = {"Adams", "Tom", "Tim", "Planet Earth", "555-555-555", "01/01/1970"};
        for (int i = 0; i < studentInformation.length; i++) {
            System.out.println(studentInformation[i]);
        }
    }
}
LATEST TUTORIALS
APPROVED BY CLIENTS