Brawl
Brawl
JCHJava Community | Help. Code. Learn.
Created by Brawl on 10/24/2024 in #java-help
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
4 replies