我得到一个整数并把它存储,到n中,switch语句的圆括号里可以是一个整数,或者一个字符或其他的基本类型。
I get the int and store it in n. The switch statement takes inside its parenthesis an int or a char or some primitive type.
序列中每个元素的类型可以是这八种基本类型中的某一种,或者是Reference类型。
The type of each element in the sequence can be either one of the eight basic types, or the Reference type.
我们真正想看到的是,基本类型可以自动进行包装(boxing)和解包装(unboxing),类似于用 C# 所进行的操作(或者比后者更好)。
What we'd really like to see would be automatic boxing and unboxing of primitive types, similar to what is done in C# (except better).
I get the int and store it in n. The switch statement takes inside its parenthesis an int or a char or some primitive type.
我得到一个整数并把它存储,到n中,switch语句的圆括号里可以是一个整数,或者一个字符或其他的基本类型。
应用推荐