Question: Given the following coding. private String GenerateStars(int x) { } String stars = ; if (SALES[x]>=100){ } stars = else{ *****! stars = **;
Given the following coding. private String GenerateStars(int x) { } String stars = ""; if (SALES[x]>=100){ } stars = else{ *****! stars = "**"; } return stars; Explain the if statement.
Step by Step Solution
There are 3 Steps involved in it
The GenerateStars method is a private method that takes an integer parameter x and returns a string ... View full answer
Get step-by-step solutions from verified subject matter experts
