What is the most accepted way to convert a boolean
to an int
in Java?
Java – Convert boolean to int in Java
booleancastingintjava
Related Topic
- Java – Is Java “pass-by-reference” or “pass-by-value”
- Java – How to efficiently iterate over each entry in a Java Map
- Java – How to read / convert an InputStream into a String in Java
- C# – Get int value from enum in C#
- Java – How to convert a String to an int in Java
- C++ – Easiest way to convert int to string in C++
- Java – Why is subtracting these two times (in 1927) giving a strange result
- Java – Why is processing a sorted array faster than processing an unsorted array
Best Answer
^^
PS : true = 1 and false = 0