小编use*_*245的帖子

为什么即使对于非相等的字符串,equalsignorecase也会返回true

import java.util.Scanner;


public class Main {


public static void main(String[] args) {
    boolean x;


    Scanner sc = new Scanner(System.in);

    String igual = sc.next().toString();        

    String[] yes = new String[15];
    yes[0]="When I find myself in times of trouble";
    yes[1]="Mother Mary comes to me";
    yes[2]="Speaking words of wisdom";
    yes[3]="Let it be ";
    yes[4]="And in my hour of darkness ";
    yes[5]="She is standing right it front of me ";
    yes[6]="mama just killed a man";
    yes[7]="And when the broken hearted people ";
    yes[8]="Living in the …
Run Code Online (Sandbox Code Playgroud)

java arrays string for-loop equals

1
推荐指数
1
解决办法
811
查看次数

标签 统计

arrays ×1

equals ×1

for-loop ×1

java ×1

string ×1