LiveWire Peer Support Network

Printable Version of Topic "Printing from one class then going to the next class"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Printing from one class then going to the next class (http://www.golivewire.com/forums/peer-ynypset-support-a.html)


-- Posted by LivDawg at 3:54 pm on June 15, 2009

hi I have two classes, one class is a LogOnMenu and the other is a CheckOutMenu.
in the LogOnMenu the user is prompted to either select sales, maintance or shut down,

Once the user selects sales he/she has to sign in (password and username stored in a .txt)

After they sign in I want it to go to the CheckOutMenu but I'm not sure how to do that! Any suggestions would be helpful.

Oh the checkOutMenu is where the user can sell dessertItems of various sorts if the customer wants to purchase another item they can and it just run through the program again and then when customer doesn't want no more items it ends and prints a recipt then exits.  


-- Posted by Sector Corrupt at 9:36 pm on June 15, 2009

Quote: from HotChica at 6:57 pm on June 15, 2009


wat the fuck is this about??????? boring

Please, if you're not a programmer do NOT post in this forum. The fact you can't understand what is going on does not mean "spam with how programming is boring"

Anyway, I don't actually know Java (From what I've seen of it it looks horrific to work with to be honest) but programming logic  in general is fairly obvious and I know a bit of object orientation. Anyway, it seems that if they've already been authenticated you just create a CheckOutMenu object and call its main menu method?  I don't quote know the syntax but it shouldn't be that difficult if you can write the class.


-- Posted by LivDawg at 9:48 am on June 16, 2009

Ah thnx heaps :)


www.golivewire.com