Search:

Type: Posts; User: shia

Search: Search took 0.07 seconds.

  1. Re: else if - else if - else if... Goes Straight To Final else

    You could try putting the array values into an enum instead of an ArrayList, this would then enable you to use a switch statement on the values (I think) rather than all those if statements.

    Let...
  2. Re: else if - else if - else if... Goes Straight To Final else

    You are welcome.
  3. Re: else if - else if - else if... Goes Straight To Final else

    When you have time could you please let me know what these errors are, it would be very helpful for me.

    Again, when you have time could you show me why my use of an ArrayList is poor in this case....
  4. Re: else if - else if - else if... Goes Straight To Final else

    I wasn't aware of the spoon feeding rule.

    I'm new to Java myself, can you tell me what is wrong with my code?
  5. Re: else if - else if - else if... Goes Straight To Final else

    import java.util.Scanner;
    import java.util.ArrayList;

    class aberAccomm {
    public static void main(String[] args) {
    int fromGideon = 6008;
    int cost = 0;

    ...
Results 1 to 5 of 5