Hello, I was wondering if anybody can help me write data fields for an instrument(Guitar) and the number of strings it has (6) and an array of string names representing string names (E,A,D,G,B,E). I have my code done for tuning and playing not sure how to do the other part:
public class StringedInstrument {
private boolean isTuned;
private boolean isPlaying;
public StringedInstrument() {
isTuned = false;
isPlaying = false; }
public void tune() {
isTuned = !isTuned; }
public void play() {
isPlaying = true; }
public void pause() {
is Playing = false; }
}