I have the following code:
public class MyFirstJavaProgram {
        public static void main(String []args) { 
          boolean b = true; 
          int x = b; 
          System.out.println(x);
    }
} 
As the title say, can I convert boolean type into another data type (in the above example, char), using Java?
 
     
     
     
     
     
     
     
     
    