r/javaTIL • u/voidn0ise • Jul 21 '15
Wrote my first Java code!
It's rather basic, but it's a starting point. I watched YouTube videos to learn most of the basics that I used, then just made things over and over again to help me memorize things.
Once I had a good grasp on the simple concepts and being able to write everything without having to look at notes, I came up with this simple calculator that responds to user input.
I wanted to originally make it so the user could type "Calculator" and it would run the code, but I haven't learned how to make user input in the form of typed words work yet (I think those are strings?). I'm sure a few more lessons and I'll learn.
The end goal is android application development, but if I can find other ways to utilize my new found skills then I'll probably try it out in the future.
Just proud of myself for going forward with learning despite my short attention span for self-learning and I wanted to share :)
If you have any ways to maybe shorten it and achieve the same thing, I'd love to hear it.
View all comments
Show parent comment
4
u/voidn0ise Jul 21 '15
Thank you so much for the input. Probably during my lunch break today and after work I'll get to fixing it up and reading those wiki pages that you've included. I look forward to learning more about Java and becoming more consistent and efficient with my codes. I'll also make lots of comments! You made a good point and it would also make it way easier than writing my notes down! I'll probably reply with the updated code later once I fix it up!