Hello everyone!
I'm trying to create a menu where you have four options:
- You can register a bird you have seen in a textfile.
- You can write the type of a bird you have seen.
- You can write the place where you have seen the bird.
- Close the program
Can someone help me with creating one? I'm a bit stuck and I keep getting errors so I would appreciate if someone could help me program a menu with these four options.
Also for the first option, registering a bird, this is what i've done.
import easyIO.*; class Birds { public static void main(String[] args) { In press = new In(); Out birds = new Out("birdfile.txt", true); birds.out("Birds name: "); String biName = press.inLine(); birds.out("Sex: "); String biSex = press.inLine(); birds.out("Place for observation: "); String plObs = press.inLine(); birds.out("Date of observation: "); int date = press.inInt(); System.out.println("Birds name: ") birds.close();
I havent started on the other 3 options yet. Was thinkg about getting the menu done first, but got stuck
Thanks alot for help