public class exercessinto { byte y; double sum; int temp; int n; public void juedui(byte x)//byte绝对值问题 { y=(byte)Math.abs(x); System.out.println("byte类型的数字的绝对值为:"+y); }
import sun.misc.BASE64Decoder;//将base64转换为byte[] import sun.misc.BASE64Encoder;//转byet[]换为base64 public class Test { public static void main(String args[]) throws IOException { //定义一个BASE64Encoder BASE64Encoder encode = new BASE64Encoder(); //将byte[