Answer:
Incorrect question. You might want to review it.
Explanation:
printStars is a method that accepts a single int argument but the variable x that will be passed into the method during its call is of type double. Hence, there is going to be an error.
Hope this helps!