TOPIC

O que há de errado se a saída esta correta?

Ronaldo Melo asked 1 year ago

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);                    
    String line = sc.nextLine();

    if(line.substring(0, 5).equalsIgnoreCase("zelda"))
        System.out.println("Link Bolado");                  
    else
        System.out.println("Link Tranquilo");           
    sc.close();
}

}

Remember not post solutions. Your post may be reviewed by our moderators.