Java.lang.Byte类之intValue()方法的功能说明
下文笔者将讲述Java.lang.Byte类中intValue()方法的功能简介说明,如下所示:
intValue()方法的功能
java.lang.Byte.intValue()的功能:返回字节对象的int值
intValue语法
intValue语法 public int intValue() 参数 无 返回值 返回对象转换为int的值例:
package com.java265.other;
import org.junit.Test;
public class other {
/**
* java265.com 测试示例分享
*/
@Test
public void test() {
/**
* Byte类 intValue方法的示例
*/
Byte b1 = Byte.decode("100");
System.out.println(b1.intValue());
}
}
------运行以上代码,将输出以下信息----
100
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。


