Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

03 06b #15

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

03 06b #15

wants to merge 14 commits into from

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.

1 participant