Question: * q1: Write a public static method named q1 that takes two ints as parameters and returns a boolean. The output should be the evaluation

 * q1: Write a public static method named q1 that takes
two ints as parameters and returns a boolean. The output should be

* q1: Write a public static method named q1 that takes two ints as parameters and returns a boolean. The output should be the evaluation of the boolean expression: The first parameter is greater than or equal to 28 or the second parameter is greater than or equal * to 4 q2: Write a public static method named q2 that takes a String as a parameter and returns a * string. The returned String is based on the input String as follows: *If the input String has no characters, return "empty" If the input String has less than 2 characters, return "short" * If the input String has 2 or more characters but less than 5, return "medium" * If the input String has greater than or equal to 5 characters, return "long" If the input String contains any instances of the letter 'w', return "found w" regardless * of the length of the input q3: Write a public static method named q3 that takes a String as a parameter and returnsa * String. The returned String is based on the input String as follows: * If the input String has no characters, return "empty" *If the input String has less than 5 characters, return "short" * If the input String has 5 or more characters but less than 13, return "medium" * If the input String has greater than or equal to 13 characters, return "long" * If the input String contains any instances of the letter 'a, return "found a" regardless * of the length of the input * q4: Write a public static method named q4 that takes no parameters and returns void. The method should print all the integers from 11 to 107 to the screen The output should be * inclusive of these end points

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!