Tampere University
Material in XP2023 for short handson session
Create Helloworld application
//Create function to ask user name for input
//create function to reverse input letters
/*
create more advanced function to ask name of user for input.
The name have to be at least 10 characters long and can't be empty
The function should throw an exception if the name contains a number
*/
Lets create a Phonebook application
- Create a new class called "Person"
- Add attributes to the class: name, phonenumber
- Create a constructor for the class
- toString method for the class
- Create a new class called "Phonebook"
- Add data structure to the class to store persons
- Create a constructor for the class
- toString method for the class
- Create a method to add a new person to the phonebook
- Create a method to remove a person from the phonebook
- Create a method to search a person from the phonebook
- Create a method to print all the persons in the phonebook
- Create a new class called "Main"
- Create a new phonebook object
- Add some persons to the phonebook
- Test the functionality of the phonebook
- Create a new class called "PhonebookUI"
- Create a new phonebook object
- Create a user interface for the phonebook
- Test the functionality of the phonebook
...