Xcode intents are screwy
When ever I'm making a switch statement in Xcode... everything indents incorrectly (see below)
public class cootieOut{
public void play(){
boolean head=false, body=false, tail=false;
int leg=0, antenna=0, eye=0, roll;
InputBox in = new InputBox();
DrawingBox box = new DrawingBox();
box.setDrawableSize(300,150);
in.setPrompt("Enter the roll: ");
do{
roll=in.readInt();
switch(roll){
case 1:
body = true;
case 2:
if(body)
head= true;
case 3:
if(body){
if(leg<6){
leg++;
}
}
}
}
}
}
public class cootieOut{
public void play(){
boolean head=false, body=false, tail=false;
int leg=0, antenna=0, eye=0, roll;
InputBox in = new InputBox();
DrawingBox box = new DrawingBox();
box.setDrawableSize(300,150);
in.setPrompt("Enter the roll: ");
do{
roll=in.readInt();
switch(roll){
case 1:
body = true;
case 2:
if(body)
head= true;
case 3:
if(body){
if(leg<6){
leg++;
}
}
}
}
}
}
PowerMac G5, Mac OS X (10.4.4)