I have a class which asks user to input information using scanner.
e.g.
Expand|Select|Wrap|Line Numbers
- System.out.println("Please enter your post code: ");
- String postCode = myScanner.nextLine();
- System.out.println("Please enter your telephone (+44): ");
- long telNumber = myScanner.nextLong();
currently
Expand|Select|Wrap|Line Numbers
- Personal[] personalList = new Personal[1];
- personalList[0] = new Personal("Paul "," White ", 74078L , "my address", "my town", "my county", 7383383838L);
within the object class Personal, the constructor looks like this
Expand|Select|Wrap|Line Numbers
- public Personal(String forename, String surname, long dob, String add1, String add2, String county, long telNumber)
- {
- this.forename = forename;
- this.surname = surname;
- this.dob = dob;
- this.add1 = add1;
- this.add2 = add2;
- this.county = county;
- this.telNumber = telNumber;
- }