I'm building a Java program where the database of it is going to be a class named Words, with Strings Vectors that will store the infos I need.
So I just created that class and also created the Vector in that same class, named English. But when I try to add names to that String Vector, it gives me an error message, saying that I need to "Create a class named English in my DataBase package, or create a class inside this own class.
Why can't I simply just put those data on a variable on the class I created? How should I accomplish this?
Btw, here is my code:
package DataBase;
public class Words {
public String English[];
English[0] = "Doll";
English[1] = "Machine";
}