Search:

Type: Posts; User: okello

Search: Search took 0.15 seconds.

  1. Replies
    3
    Views
    2,033

    [SOLVED] Re: Maps and adding to sets as values

    Nice one there, buddy. It helped me.
  2. Replies
    3
    Views
    6,636

    Re: Multi-dimension ArrayList example

    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...
  3. Thread: ARRAYLIST

    by okello
    Replies
    4
    Views
    2,865

    Re: ARRAYLIST

    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...
  4. Thread: Illegal start

    by okello
    Replies
    7
    Views
    3,071

    Re: Illegal start

    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...
  5. Re: Create a java small class for a bank account!!?

    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...
Results 1 to 5 of 5