Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Java Base Converter/calculator

Hello all. Can you tell me how to improve this converter and calculator? This either adds, multiplies, divides, or subtracts either decimals, binary, hexa, or octal values. When you choose 2 base forms you want to, for example, multiply, it will give you the answer for all types. Here is the source code:
http://pastebin.com/mZN5nyh4
Tell me what you think.
Screenshot: https://i.imgur.com/punKVuX.png
I am a pure white hat, Android enthusiast, tinkerer, listener of world news, a dreamer, and a friend.
You can probably make a GUI out of it so it is not in that Text Format :) I can probably help as well! I'm learning about GUI's in college so it's good to practice!
(Oct 29, 2015 07:02 PM)Mankey Wrote:  You can probably make a GUI out of it so it is not in that Text Format :) I can probably help as well! I'm learning about GUI's in college so it's good to practice!

I definitely wouldn't recommend making a GUI until you learn a bit more, specifically about creating classes and methods. Instead of having all of that code in your main class, try creating methods or classes that will perform these operations for you.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by MordiciaNov 22, 2018 05:41 PM 5 272 Nov 22, 2018 05:41 PM
Last Post: Minesweeper
[Java] by xlosmuertosxSep 25, 2015 09:02 PM 7 239 Sep 25, 2015 09:02 PM
Last Post: xlosmuertosx
[Java] by ArrakisMar 24, 2015 06:08 AM 0 82 Mar 24, 2015 06:08 AM
Last Post: Arrakis