1.需要用到的包 2.实例 实体类 people package com.shore.entity; /** * @author DSHORE/2019-4-19 * */ public class People { private int pid; private String pname; private int age; private String job; private double sal; public People() { } public People(int pid, St…
import java.io.*; public class Test{ /** * 二进制与整型之间的转换 * @param args * @throws IOException */ public static void main(String args[])throws IOException{ //整型转二进制 int a = -1; int b = 1; System.out.println(Integer.toBinaryString(a)); System.out.println(…
public class DateParserT { /** * Date 与 String.long 的相互转换 * @param args */ public static void main(String[] args) { Date dt =new Date(); System.out.println(dt)…