Homework help for effecting elements in methods

My homework says: "Write a method to gather the required input data (name and sale amount). Don't allow the user to enter a negative number for sales. There will be 2 array parameters in the method, one for names and one for sales, the method will return an array of sales. Hint: Use a do-while loop inside a for loop." I don't know what she is asking me to do. I don't know how to effect a element in one method without it being public or returning it
2 Replies
JavaBot
JavaBot5w ago
This post has been reserved for your question.
Hey @Brawl! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JavaBot
JavaBot5w ago
Post Closed
This post has been closed by <@577978536350973963>.
Want results from more Discord servers?
Add your server