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...
Type: Posts; User: shia
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...
You are welcome.
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....
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?
import java.util.Scanner;
import java.util.ArrayList;
class aberAccomm {
public static void main(String[] args) {
int fromGideon = 6008;
int cost = 0;
...