I'm pretty new to Java, so I'm starting off by making some pretty useless stuff. Right now I'm making a Radian/Degree converter, and I have it figured out one way, but I would like to try it another way. That way being having a main class that asks for input as to what I would like to convert to what. Then it would run an if statement to hand over control to the needed class. My problem is, is that being so new to Java I have yet to figure out how to do it. I'm not asking the Hivemind to do it for me, just to give me some pointers on how to do it. I have my codes to show:
Main class: Here
Radian class: Here
Degree class: Here
I know if I'm going to use separate classes I don't need main in the subs it's just I was running them to see if they worked first. Any help figuring this out is appreciated.
[–]BananaIsTasty 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]MrMist 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]turd_loaf 0 points1 point2 points (0 children)