Java program compares the execution time to ArrayList and LinkedList
Download MenuGUI.java from canvas, save it to your package folder. In case of jGrasp, save it to source folder.
import MenuGUI to eclipse ( We choose a simple way. See next slide)
package
Source
folder
project
workspace
If you don’t know how to do this, follow next slide, otherwise jump to slide #11.
2
3
4
Create a superclass
Create a subclass (USA)
Create a subclass
(Any Country)
Write a test Program
0
Download API & Burger Images
5
Run
1
Assignment 2 Discussion
Assignment 2 Discussion
2
3
4
Create a superclass
Create a subclass (USA)
Create a subclass
(Any Country)
Write a test Program
0
Download API & Burger Images
5
1
Right click your project
MenuGUI is now loaded but there is an error mark.
Double click MenuGUI to open.
The reason why this program issue an error is “THERE IS NO PACKAGE NAME” or “DIFFERENT PACKAGE NAME”.
ADD/replace your package name.
hit refresh
hit save icon.
You are ready to use MenuGUI
Run
2
3
4
Create a superclass
Create a subclass (USA)
Create a subclass
(Any Country)
Write a test Program
0
Download API & Burger Images
5
1
3. Call API
To print the menu, call API and pass necessary information .
Assignment 2 Discussion
Run