Bob Livingston

Greenhorn
+ Follow
since Apr 06, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bob Livingston

Yes, all java programs must have a main method. The static main is the first method called in any java program. It does not matter where it occurs it just must occur.
8 years ago
Thomas from the code that you just added it doesn't input the name nor password into the BSTree anywhere.

To add your second question that would be an easy fix just add something that asks the user how many users and passwords they would like to enter capture that number and loop through.

Something like

double holder = 0;

System.out.println("How many users would you like to enter?")
holder = userInput.nextDouble();

for (int num=0; num<holder; num++)
{
// rest of your code
8 years ago


The entire loop that you need, just input the code that would do that.
8 years ago