i solved it thanks for help helloworld
Type: Posts; User: lotus
i solved it thanks for help helloworld
if you take a look at my code(not yet completed but compilable)
at Paste #128981 | LodgeIt!
and run it, when you choose choice 1, it asks to create a stock portfolio, you create 1 stock and then...
it still do not work, it gets replaced, my friend helped me do a 2dimensional array and it worked but i am having trouble learning how it works.
my needs int and double types to store the amount of money input, so i cant use aaraylist
i have not learnt ArrayList class and also i tried doing it your way but it is still the same the array got replaced when i enter a new 1
what about the termination condition, because count1 is a input by user of 1-99, if the user inputs 1 for a new for loop with the condition already at 5 wont it terminate immediately
for( i = 0;i<count1;i++){
while(mod){
stockName[i] = portFolioStockName();
stockSym[i] = portFolioStockSym();
unitPrice[i] = portFolioUnitPrice();
unitBought[i] =...