I will try to explain you what is the goal of the setters and getters. In your case, there are different problems which need to be explained.
In your first function getDiskUsage, there is a private method. You only can access to this method from the same class. I don't know if is your objective.
Moreover, if you want to access three different disks, I would instance 3 three different objects, example: DiskMembers[] disks = new DiskMembers[3]; //C D and E
In this case, for each object you will access the getters/setters. The attributes for your class DiskMembers should be:
private boolean _DiskCheck;
private boolean _DiskRead;
private boolean _DiskWrite;
Each time that you modify the disk, you access of this way: disks[0].set_DiskCheck() = true;
In addition, in each instance you would have everything that you want. To check what is the last disk, you can add another attribute like date, where you keep the date of the last modify.
Lastly, I would recommend to ensure that a setter method only keep the value, not return something. In the other side, you will have the getter, that return the value of the private attribute. Another important thing is if you need to create a complex setter, it would be better to create more methods that you can access with this setter.
PD: try to get a Java Object-Oriented Programming book and start reading, you will improve your level in a short period of time.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…