Actually that seems fair. I'm talking about NO indentations, at all. Here are the samples I'm referring to:
public class Sequence {
Sequence() { System.out.print("c "); }
{ System.out.print("y "); }
public static void main(
String[] args) {
new Sequence().go();
}
void go() { System.out.print("g "); }
static { System.out.print("x "); }
}
and
public class MyLoop {
public static void main(String[] args) {
String[] sa = {"tom ", "jerry "};
for(int x = 0; x < 3; x++) {
for(String s: sa) {
System.out.print(x + " " + s);
if( x == 1) break;
}
}
}
}
and
interface Rideable {
String getGait();
}
public class Camel implements Rideable {
int weight = 2;
public static void main(String[] args) {
new Camel().go(8);
}
void go(int speed) {
++speed;
weight++;
int walkrate = speed * weight;
System.out.print(walkrate + getGait());
}
String getGait() {
return " mph, lope";
}
}
etc. Basically, ALL of the sample questions on the Oracle site have NO indentation at all. That's not what I've seen on the practice tests so far - some trick nesting notwithstanding. Is this what we should expect on the exam?
Thanks,
MJH