i dont want the user to enter True to modify or False to confirm info, but want them to enter number so it can set mod into either true or false how can i do it??boolean mod = true; for( i = 0;i<count1;i++){ while(mod){ stockName[i] = portFolioStockName(); stockSym[i] = portFolioStockSym(); unitPrice[i] = portFolioUnitPrice(); unitBought[i] = portFolioUnitBought(); portFolioSummary(i); System.out.println("Enter 1 to modify ,0 to ok"); mod = myScanner.nextBoolean(); } }


LinkBack URL
About LinkBacks
Reply With Quote
by clicking the
button on their useful posts.
