Repetition of the program? [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I want to loop my program to repeat if the user inputs y the program will repeat over and over again ,but if the user finally inputs n the program will stop import java.util.Scanner; public class ReverseIt { public static void main(String[] args) { Scanner sc = new Scanner (System.in); String name; System.out