Answers for "int cannot be converted to boolean"

0

int cannot be converted to boolean

public class Demo {
   public static void main(String[] args) {
      int val = 100;
      System.out.println("Integer: "+val);
      boolean bool = (val == 100);
      System.out.println("Converted to Bool: "+bool);
   }
}
Posted by: Guest on June-07-2021

Code answers related to "int cannot be converted to boolean"

Browse Popular Code Answers by Language