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

qq_25073223 2022-09-23 08:36:25 阅读数:58



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

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

The function of the longValue() method

function of java.lang.Byte.longValue():

 Returns the long int value of a bytes object

longValue syntax

longValue syntaxpublic long longValue()parameternonereturn valueReturns the value of the object converted to long


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