Author Topic: my java calculator  (Read 5856 times)

0 Members and 1 Guest are viewing this topic.

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
my java calculator
« on: April 26, 2010, 09:30:06 pm »
Yes, I made a calculator. It sucks, but I'm proud of it.  :P

Let me know what you think of it!
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: my java calculator
« Reply #1 on: April 26, 2010, 10:41:34 pm »
Not a bad start I think. Just keep at it :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: my java calculator
« Reply #2 on: April 26, 2010, 10:55:20 pm »
Thats actually pretty nice :)  Are you planning to add any other features or do you plan to move onto other projects?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: my java calculator
« Reply #3 on: April 26, 2010, 11:12:17 pm »
Nice, I am curious if you are planning to add more features too ^^

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
Re: my java calculator
« Reply #4 on: April 26, 2010, 11:39:27 pm »
Yeah, I'll probably add some other features to it like decimals and negative numbers- maybe exponents. I'm probably not going to spend a whole lot more time on it, though.
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: my java calculator
« Reply #5 on: April 27, 2010, 12:09:28 am »
Doesn't it already support negative numbers?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
Re: my java calculator
« Reply #6 on: April 27, 2010, 08:08:01 am »
Yes, but you can only get a negative number by subtracting from a positive one. What I meant was that I was going to add in a negative symbol so that you can multiply and divide by negatives.
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
Re: my java calculator
« Reply #7 on: April 28, 2010, 11:02:15 pm »
finished v1.1 and added in a whole bunch of new stuff   ;D
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: my java calculator
« Reply #8 on: April 28, 2010, 11:09:20 pm »
mhmm
when I type numbers, then + then try typing another number, it continues adding digits x.x

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
Re: my java calculator
« Reply #9 on: April 28, 2010, 11:27:18 pm »
weird... that shouldn't be happening  ???
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: my java calculator
« Reply #10 on: April 28, 2010, 11:51:31 pm »
Hmm its nice. I don't get the thing DJ is getting though. However, it doesn't auto-clear if it is supposed to (like if you do an equation then try entering stuff without hitting clear it just adds the number to the end or something). Also, I would reverse how the x√y works, as I would put what root you are doing and then the number that is being "rooted." Just my opinion. It's very nice though.
« Last Edit: April 29, 2010, 12:26:35 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: my java calculator
« Reply #11 on: April 29, 2010, 12:03:49 am »
You should add symbolic support. With Java's built-in string handling it shouldn't be that hard.
Also, maybe display the expression as you type it, instead of just the numbers?

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
Re: my java calculator
« Reply #12 on: April 30, 2010, 06:48:49 pm »
You should add symbolic support. With Java's built-in string handling it shouldn't be that hard.
Also, maybe display the expression as you type it, instead of just the numbers?

Yeah, I could probably put that in. It's still a work in progress, and there's still some stuff that I want to add to it.
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: my java calculator
« Reply #13 on: September 09, 2010, 10:51:26 am »
I am working on one.. in C#

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: my java calculator
« Reply #14 on: September 09, 2010, 05:55:17 pm »
Nice, do you plan to add some features not present in other windows calculators or is it mostly for learning experience?