Skip to content

shmatozz/Java-Lab3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Lab3

This lab includes working with strings, personal full name, sex and age.


To create an object of person identifying class, you need to pass to the PersonIdentifier class constructor an array of arguments.

Array should consist of [surname, name, patronymic, birth date (DD.MM.YYYY)] in russian language

info = scanner.nextLine();
String[] info_parsed = info.split(" ");

PersonIdentifier person = new PersonIdentifier(info_parsed);

Method .printInfo() output information about person in format: surname initials sex age.

person.printInfo();

Information will be output in the console.

Releases

No releases published

Packages

No packages published

Languages