Q:

how to transform a char to a unicode java

import java.util.*;

public class Ex13 {

    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        char firstL,secondL;

        System.out.println("insert first l");
        firstL=in.next().charAt(0);
        System.out.println("insert second l");
        secondL=in.next().charAt(0);
        if (){
             System.out.println("kk"); 

        }
    }
}

I need firstL and secondL to equal in the if section but I can't because the firstL and the secondL is a char type and I need to transform it to a Unicode so I can finish the project 

A:

Why don't you just check the value?
    char firstL,secondL;
    System.out.println("insert first l");
    firstL=in.next().charAt(0);
    System.out.println("insert second l");
    secondL=in.next().charAt(0);
    if (firstL == secondL){
         System.out.println("kk"); 
    }

