You are viewing our Forum Archives. To view or take place in current topics click here.
[Java] First Program!
Posted:

[Java] First Program!Posted:

fosmanc
  • TTG Master
Status: Offline
Joined: Dec 29, 201013Year Member
Posts: 856
Reputation Power: 44
Status: Offline
Joined: Dec 29, 201013Year Member
Posts: 856
Reputation Power: 44
Hey guys, so recently I decided to learn Java to see if I like it and if it might be something I'd be interested in going into later on. I learned quite a bit, but of course am still a beginner. I made this program out of curiosity to see if I was able to and for fun! This program gets ticker symbol input from the user, and displays basic information about the stock for them.

I'm looking for suggestions, on ways this program could have been improved, and any other programs I should be attempting to make (like ideas, idk I'm bored).


Screenshot
[ Register or Signin to view external links. ]

Virustotal
[ Register or Signin to view external links. ]

Download
[ Register or Signin to view external links. ]

Edit 1: added download link for those interested. note: portfolio doesn't do anything yet


Last edited by fosmanc ; edited 1 time in total
#2. Posted:
Terrowin
  • Junior Member
Status: Offline
Joined: Apr 05, 20168Year Member
Posts: 63
Reputation Power: 2
Status: Offline
Joined: Apr 05, 20168Year Member
Posts: 63
Reputation Power: 2
I'm impressed with this being your first application! The layout is fantastic, and I can only assume that the code behind it looks just as great. Out of curiosity, what is the portfolio tab used for? Can you save searched stocks and received scheduled updates? If not, that might be a cool feature to have in this program! I would recommend adding a refresh method to the application initialization method so that the portfolio is updated each time the application is opened.

Whatever you decide to do, good luck with your progress and learning!
#3. Posted:
-Deano
  • PC Master Race
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Considering Java is huge on object-oriented development, you should look at some exercises on class creation and things along that line.

A quick example of a mock-program would be to create an ATM type application where the program has a main bank and the users' account.
You can keep track of transactions between the pair, the attributes of each class (Such as account name, ID, current balance, etc.)
You could even make it as complex as managing interest and loans.

Here's a little site I found that has a lot of cool exercises to get to grips with Java.
[ Register or Signin to view external links. ]
#4. Posted:
fosmanc
  • TTG Master
Status: Offline
Joined: Dec 29, 201013Year Member
Posts: 856
Reputation Power: 44
Status: Offline
Joined: Dec 29, 201013Year Member
Posts: 856
Reputation Power: 44
Terrowin wrote I'm impressed with this being your first application! The layout is fantastic, and I can only assume that the code behind it looks just as great. Out of curiosity, what is the portfolio tab used for? Can you save searched stocks and received scheduled updates? If not, that might be a cool feature to have in this program! I would recommend adding a refresh method to the application initialization method so that the portfolio is updated each time the application is opened.

Whatever you decide to do, good luck with your progress and learning!


Thank you! I'm still working on the portfolio tab, but I'm hoping to have it work so that you can add your own stocks with however many shares and it will display more information and maybe have a calculator based on what you paid and what not. I'm having trouble with that part however but I'll update the thread if I figure it out!
#5. Posted:
fosmanc
  • TTG Master
Status: Offline
Joined: Dec 29, 201013Year Member
Posts: 856
Reputation Power: 44
Status: Offline
Joined: Dec 29, 201013Year Member
Posts: 856
Reputation Power: 44
-Deano wrote Considering Java is huge on object-oriented development, you should look at some exercises on class creation and things along that line.

A quick example of a mock-program would be to create an ATM type application where the program has a main bank and the users' account.
You can keep track of transactions between the pair, the attributes of each class (Such as account name, ID, current balance, etc.)
You could even make it as complex as managing interest and loans.

Here's a little site I found that has a lot of cool exercises to get to grips with Java.
[ Register or Signin to view external links. ]

I'm definitely going to give that ATM machine a try! I'll check out that website too, thanks!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.