Have a separate array, same length and the indexes of that relate to those in your String array.
Probably a better way is to create an object like
public class Commandment {
private String com;
private String read;
public (String com) {
this.com = com;
this.read = false;
}
public getCom() {
return com;
}
public isRead() {
return read;
}
public beenRead() {
read = true;
}
}
And make an array of those objects instead.
Commandment[] coms = new Commandment[10];
coms[0] = new Commandment("com1");
System.out.println(coms[0].getCom()+", has been read? "+coms[0].isRead());
coms[0].beenRead();
System.out.println(coms[0].getCom()+", has been read? "+coms[0].isRead());
Will create it, put in the first commandment as "com1" and then check if its been read, make it read, and check it again.