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

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

functionaldescriptionlongvaluemethodjava.lang.byte

From:

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

Example:

package com.java265.other;import org.junit.Test;public class other {/*** java265.com 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. https://en.javamana.com/2022/266/202209230828163867.html