Задача 11- еднакви думи
Вместо с word.toLower() пробвах с equalsIgnoreCase().
Judge ми я призна, по- малко писане ми се стори:
package com.company; import java.util.Scanner; /** * Created by entropy on 3/21/2017. */ public class equals { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); String wordOne= scanner.nextLine(); String wordTwo=scanner.nextLine(); if (wordOne.equalsIgnoreCase(wordTwo)) { System.out.println("yes"); }else{ System.out.println("no"); } } }