fusing 2 codes together
would be nice if someone could fuse them real quick 😄
10 Replies
We don't do things for you, we help you do it yourself.
then pls tell me how
well they are both fully written programs, albeit that second one has some structural problems...
You'd have to decide on how you want the user to pick what piece of code to run
then implement that
to the first one
note how your first program has something that looks like a menu going on
it asks the user to say what method to run. you could turn the second program into a method and run it in the same way
i want that the user is just able to write numbers like in the second code
but if i implement the code in there it doesnt work and i can write letters ;/
then go ahead and do that
as you can see, it involves manually handling the input events
could you tell me were i put the second code into the first one
you cant just copypaste the entire thing
you'd extract the parts of the second program you want into its own method, and call that method from the "menu" portion of the first programs
Main
ok i will try it ty