Sorry to bother you all but I'm new two programming and I'm really stuck on this task. I have to add code to the class to print numbers from this array in order to make a for-loop.
This is what I have so far:
public class ArrayExercise
{
public static void main(String[] args)
{
String[] numbers = {"one", "two", "three", "four", "five"};
String numbers = number[i];
String nextnumber = number[i + 1];
}
}
How can I do this?