Skip to content

Conversation

@Erdenebulgan19
Copy link

package com.company;
import java.util.Scanner;
public class Main {

public static void main(String[] args) {
Scanner input = new Scanner (System.in);
boolean isOnrepeat =true;
while (isOnrepeat) {
    System.out.println( "Playing current song");
    System.out.println( "Would you like to take this song off of repeat? if so, answers yes");
    String userinput =input.next();
    if (userinput.equals("yes")) {
        isOnrepeat =false;
    }
    System.out.println( "Playing next song");
}
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants