HOME      BLOG       FORUMS      CONTACT       ABOUT

Convert an byte value to double value

The doubleValue method of Byte class is used for converting a byte value to primitive double value.

public class ByteWrapper {
	public static void main(String[] args) {
		byte byteValue = 10;
		Byte objByte = new Byte(byteValue);
		double value = objByte.doubleValue();
		System.out.println(value);
	}
}

Share

Tags: , , , ,


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply