Functional description of the intValue() method of the Java.lang.Byte class

qq_25073223 2022-09-23 08:37:22 阅读数:586

functionaldescriptionintvaluemethodjava.lang.byte

From:

Java.lang.ByteFunction description of the intValue() method of the class

The following author will describe the function introduction of the intValue() method in the Java.lang.Byte class, as follows:

Function of the intValue() method

Function of java.lang.Byte.intValue():

 Returns the int value of a bytes object

intValue syntax

intValue syntaxpublic int intValue()parameternonereturn valueReturns the value of the object converted to int

Example:

package com.java265.other;import org.junit.Test;public class other {/*** java265.com test example sharing*/@Testpublic void test() {/*** Example of Byte class intValue method*/Byte b1 = Byte.decode("100");System.out.println(b1.intValue());}}------Run the above code, the following information will be output----100
copyright:author[qq_25073223],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/266/202209230828163725.html