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 t = sc.next();
  char[] c1 = s.toCharArray();
  char[] c2 = t.toCharArray();
  List<char> L1 = new ArrayList<char>();
  List<char> L2 = new ArrayList<char>();
  for(int i = 0;i < c1.length();i++){
    L1.add(c1[i]);
  }
  for(int i = 0;i < c2.length();i++){
    L2.add(c2[i]);
  }
  Collections.sort(L1);
  Collections.sort(L2);
  for(int i = 0;i < c1.length();i++){
    String s1i = L1.get(i);
  }
  for(int i = 0;i < c2.length();i++){
    String s2i = L2.get(i);
  }
  for(int i = 0;i < c1.length();i++){
    String ss = s10 + s1i;
  }
  for(int i = 0;i < c2.length();i++){
    String tt = s20 + s2i;
  }
  List<String> ans = new Arraylist<String>();
  ans.add(ss);
  ans.add(tt);
  Collections.sort(ans);
  if(ans.get(0).equals(ss))System.out.println("Yes");
  else System.out.println("No");
}}
  
    


Compiler output:
Main.java:9: error: unexpected type
  List<char> L1 = new ArrayList<char>();
       ^
  required: reference
  found:    char
Main.java:9: error: unexpected type
  List<char> L1 = new ArrayList<char>();
                                ^
  required: reference
  found:    char
Main.java:10: error: unexpected type
  List<char> L2 = new ArrayList<char>();
       ^
  required: reference
  found:    char
Main.java:10: error: unexpected type
  List<char> L2 = new ArrayList<char>();
                                ^
  required: reference
  found:    char
Main.java:11: error: cannot find symbol
  for(int i = 0;i < c1.length();i++){
                      ^
  symbol:   method length()
  location: variable c1 of type char[]
Main.java:14: error: cannot find symbol
  for(int i = 0;i < c2.length();i++){
                      ^
  symbol:   method length()
  location: variable c2 of type char[]
Main.java:19: error: cannot find symbol
  for(int i = 0;i < c1.length();i++){
                      ^
  symbol:   method length()
  location: variable c1 of type char[]
Main.java:22: error: cannot find symbol
  for(int i = 0;i < c2.length();i++){
                      ^
  symbol:   method length()
  location: variable c2 of type char[]
Main.java:25: error: cannot find symbol
  for(int i = 0;i < c1.length();i++){
                      ^
  symbol:   method length()
  location: variable c1 of type char[]
Main.java:26: error: cannot find symbol
    String ss = s10 + s1i;
                ^
  symbol:   variable s10
  location: class Main
Main.java:26: error: cannot find symbol
    String ss = s10 + s1i;
                      ^
  symbol:   variable s1i
  location: class Main
Main.java:28: error: cannot find symbol
  for(int i = 0;i < c2.length();i++){
                      ^
  symbol:   method length()
  location: variable c2 of type char[]
Main.java:29: error: cannot find symbol
    String tt = s20 + s2i;
                ^
  symbol:   variable s20
  location: class Main
Main.java:29: error: cannot find symbol
    String tt = s20 + s2i;
                      ^
  symbol:   variable s2i
  location: class Main
Main.java:31: error: cannot find symbol
  List<String> ans = new Arraylist<String>();
                         ^
  symbol:   class Arraylist
  location: class Main
Main.java:32: error: cannot find symbol
  ans.add(ss);
          ^
  symbol:   variable ss
  location: class Main
Main.java:33: error: cannot find symbol
  ans.add(tt);
          ^
  symbol:   variable tt
  location: class Main
Main.java:35: error: cannot find symbol
  if(ans.get(0).equals(ss))System.out.println("Yes");
                       ^
  symbol:   variable ss
  location: class Main
18 errors