Question: what output is produced by the following program? please explain why public class RelationalExpression 4 { public static void printRange ( char starLetter, char endLetter

what output is produced by the following program? please explain why
public class RelationalExpression4{
public static void printRange(char starLetter, char endLetter){
for (char letter = starLetter; letter <= endLetter; letter++){
System.out.print(letter);
}
System.out.println();
}
public static void main(String[] args){
printRange('e','g');
printRange('n','s');
printRange('z','a');
printRange('q','r');
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!