-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
25 lines (23 loc) · 850 Bytes
/
Copy pathMain.java
File metadata and controls
25 lines (23 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class Main {
/*
* 1.java 字节码是java源文件编译产生的中间文件
* java虚拟机是可运行java字节码的假象计算机
* java源程序-》(经过编译)字节码(Byte Code)->机器码
* */
public static void main(String[] args) throws ParseException {
// Calendar calendar=Calendar.getInstance();
// String data="2018-10-11";
// SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
// calendar.setTime(format.parse(data));
// System.out.println(calendar.get(Calendar.WEEK_OF_YEAR));
String remain="123";
System.out.println(
remain.substring(0,0)+remain.substring(1)
);
}
}