This code will first execute the following len <= MAX_COMPACT_DIGIST. This is of bool type So there is nothing wrong with the assignment here. Secondly, computers don’t know true and false. This concept is artificially added. If you have studied C, you should know that non-0 is extremely true. Generally speaking, 1 is considered true and 0 is false. In fact, 2, 3, and 4 are considered true. . . It's also true. So don’t panic if bool type numbers are printed during the debugging process
len <= MAX_COMPACT_DIGIST Isn’t this just a boolean value, maybe because of the debug expression,
Boolean in Java is stored in int after compilation. Maybe the debugger you use displays the actual value
This code will first execute the following len <= MAX_COMPACT_DIGIST. This is of bool type
So there is nothing wrong with the assignment here.
Secondly, computers don’t know true and false. This concept is artificially added. If you have studied C, you should know that non-0 is extremely true. Generally speaking, 1 is considered true and 0 is false. In fact, 2, 3, and 4 are considered true. . . It's also true.
So don’t panic if bool type numbers are printed during the debugging process
1. I’m curious what IDE you use, IntelliJ IDEA?
2. If you don’t want anything to happen, let’s start with the orthodox and powerful Eclipse! Look, it’s quite normal if this doesn’t appear
Reference mysql tinyint?