public ThreeRingDisk(){ //only constructor available to a client
middle = new ArrayList<Character>();
inner = new ArrayList<Character>();
outer = ThreeRingDisk(outr);
}
private ThreeRingDisk(String outr){ //can only be called by the creator
outer = new ArrayList<Character>();
setOuter(outr);
}
Also, tried rearranging so of methods. Not sure how else to call the private method within the public so that it does not display an error (Error: cannot find symbol).

New Topic/Question
Reply



MultiQuote





|