Thomas N. Williams

Greenhorn
+ Follow
since Mar 11, 2010
Merit badge: grant badges
For More
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 Thomas N. Williams

Hi Rob, yes, I am using Eclipse. I changed it to this:



which got rid of the error, but the BST doesn't appear to print out. Also, is there a way to loop the inputs so I can enter more than just the one username and password? Thanks
13 years ago
Thanks Jeanne, I worked on it a bit and came up with this:



which returns

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error, insert "Finally" to complete TryStatement

at Run.run(Run.java:35)
at Run.main(Run.java:42)



Is this a correct way of getting the usernames and passwords? Could anyone help me get rid of this error? Thanks
13 years ago
Hi there. I've attached some code for my program in which I have to enter a series of usernames and passwords, add them to a binary search tree and print them out. I have only ever used input from a text file or in the main method, but for the next part I have to input the usernames and passwords at the command line. Can anyone help me out, perhaps show me which parts to modify? Thanks.

13 years ago
Hi there. Relatively new to Java. I have an assignment which is split into parts, based on a username/password idea. First part was to create a data structure appropriate for my project and I could add items to it. Done this using a Binary Search Tree. There appears to be no error in the code, but I can't figure out how to create a main method to make sure it works properly.
Code:


Any help with a main method would be greatly appreciated, grateful for any other suggestions or improvements. Thanks
14 years ago