Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){

    Scanner sc=new Scanner(System.in);
    
    String s=sc.next();
    
    String result = "No";
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
			result = "Yes";
		}
 
		System.out.println(result);
		sc.close();
	}
}
    

Compiler output:
Main.java:11: error: cannot find symbol
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
		     ^
  symbol:   variable sArray
  location: class Main
Main.java:11: error: cannot find symbol
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
		                  ^
  symbol:   variable sArray
  location: class Main
Main.java:11: error: cannot find symbol
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
		                               ^
  symbol:   variable sArray
  location: class Main
Main.java:11: error: cannot find symbol
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
		                                            ^
  symbol:   variable sArray
  location: class Main
Main.java:11: error: cannot find symbol
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
		                                                         ^
  symbol:   variable sArray
  location: class Main
Main.java:11: error: cannot find symbol
		if ((sArray[0] == sArray[1] && sArray[2] == sArray[3] && sArray[0] != sArray[2])
		                                                                      ^
  symbol:   variable sArray
  location: class Main
Main.java:12: error: cannot find symbol
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				    ^
  symbol:   variable sArray
  location: class Main
Main.java:12: error: cannot find symbol
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				                 ^
  symbol:   variable sArray
  location: class Main
Main.java:12: error: cannot find symbol
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				                              ^
  symbol:   variable sArray
  location: class Main
Main.java:12: error: cannot find symbol
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				                                           ^
  symbol:   variable sArray
  location: class Main
Main.java:12: error: cannot find symbol
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				                                                        ^
  symbol:   variable sArray
  location: class Main
Main.java:12: error: cannot find symbol
				|| (sArray[0] == sArray[2] && sArray[1] == sArray[3] && sArray[0] != sArray[1])
				                                                                     ^
  symbol:   variable sArray
  location: class Main
Main.java:13: error: cannot find symbol
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
				    ^
  symbol:   variable sArray
  location: class Main
Main.java:13: error: cannot find symbol
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
				                 ^
  symbol:   variable sArray
  location: class Main
Main.java:13: error: cannot find symbol
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
				                              ^
  symbol:   variable sArray
  location: class Main
Main.java:13: error: cannot find symbol
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
				                                           ^
  symbol:   variable sArray
  location: class Main
Main.java:13: error: cannot find symbol
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
				                                                        ^
  symbol:   variable sArray
  location: class Main
Main.java:13: error: cannot find symbol
				|| (sArray[0] == sArray[3] && sArray[1] == sArray[2] && sArray[0] != sArray[1])) {
				                                                                     ^
  symbol:   variable sArray
  location: class Main
18 errors