Answer:
The method goes thus
static void printOdds1To11(){
for(int i = 1; i<=11;i++){
System.out.println(i);
}
}
Step-by-step explanation:
This line defines the method
static void printOdds1To11(){
This line iterates from 1 to 11 with an increment of 2
for(int i = 1; i<=11;i+=2){
This line prints the odd number in this range
System.out.println(i);
}
}