package com.itheima.day01.test;
import java.io.File;
import java.io.FileReader;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.itheima.day01.beans.User;
/**
* @author Administrator
*
*/
public class Test1 {
/**
* @param args
*/
public static void main(String[] args) {;
//创建对象
User user=new User();
user.setUsername("zhangsan");
user.setPassword("123");
DateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
try {
Date date = format1.parse("2011-06-08");
user.setBirthday(date);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(user);
}
File file=null;
FileReader fr=null;
List list=new ArrayList<String>();
String str=new String("CBA");
char c=str.charAt(2);
private void syso() {
System.out.println(c);
List list=new ArrayList();
String se=new String("afdaf");
int length = se.length();
char charAt = se.charAt(1);
}
} |