Answer the question
In order to leave comments, you need to log in
How to apply the principle of encapsulation to this code?
class Fox {
public static void main(String[] args) {
int a = 1;
int b = 2;
int c = 3;
int d = 4;
for(a=1; a<4; a++){
for(b=2; b<7; b++){
for(c=3; c<10; c++){
for(d=4; d<20; d++){
System.out.println(" " + a + b + c + d);
}
}
}
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question