Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! I am trying to figure out how to add user input from scanner into an array in JAVA. I think I am on the

Hello! I am trying to figure out how to add user input from scanner into an array in JAVA.
I think I am on the right track, but I'm not sure where to go from here. TIA
public static void addNewDep(double[] DEPOSIT, int MAX_DEPS, int userDeposit){
if (userDeposit < MAX_DEPS){
System.out.println("Please enter in the amount to deposit: ");
Scanner newDeposit = new Scanner(System.in);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

COMPARE the three types of organization-wide incentive plans.

Answered: 1 week ago

Question

6. What data will she need?

Answered: 1 week ago

Question

1. How did you go about making your selection?

Answered: 1 week ago