Nice one there, buddy. It helped me.
Type: Posts; User: okello
Nice one there, buddy. It helped me.
For a beginning, I think you just need a Student class with name, score and grade attributes. Then, you can define an arraylist of Student with a length of 25. Prompt for student name, use the...
Further to helloworld922's contribution,
Assuming 'generator' is an instance of
java.util.Random
int index = generator.nextInt( n ), where 'n' is the length of your arraylist.
Then print...
First, you don't need to have parenthesis before the while loop. So remove that parenthesis and the matching closing parenthesis after closing the while loop.
Secondly, I think u should modify...
My approach would be as follows:
1. I'd create an bank account interface with the two methods; withdraw and deposit:
public interface BankAccount {
private double bal;
public void...