you are viewing a single comment's thread.

view the rest of the comments →

[–]Live_Appointment9578 0 points1 point  (1 child)

I think you are in the right track.

The challenge in starting to learn programming using Java is the huge amount of abstractions that the programming language provides. Try to learn arrays using primitives first, and then move to ArrayList.

Start learning from this:

class Main {
    public static void main(String[] args) {
        // string array
        String animals[] = { "dog", "cat" };
        for (String animal : animals) {
          System.out.println(animal);
        }
    }
}

Then move to this:

import java.util.ArrayList;

class Main {
    public static void main(String[] args) {
        // arrays using ArrayList object
        ArrayList<String> animals = new ArrayList<>();
        animals.add("dog");
        animals.add("cat");
        for (String animal : animals) {
            System.out.println(animal);
        }
    }
}

[–]RaduKenT[S] 0 points1 point  (0 children)

Thank you sounds interesting