2014-07-05 日志

45 篇文章 0 订阅

Integer:

int parseInt(String str) 将字符串解析为int


Date:

Date() 无参构造,获得当前日期

Date(long date) 用指定的date值初始化,获得相应的日期。

long getTime() 获得毫秒值

void setTime(long time) 按照long设置毫秒值


DateFormat:

static  DateFormat getInstance() 获得DateFormat的实例对象

Date parse(String str) 将字符串解析为Date对象


Calendar:

void add(int field, int amount)  按照amount来修改相应的字段

int  get(int  field) 获得相应的字段

void set (int field, int value)  设置相应的字段

void set (int year, int month, int date)  设置年,月,日(月份要注意month+1才是真正想要的月份)


String:

判断:

boolean matches(String reg) 按照reg的规则判断字符串是否符合规则

分割:

string[] split(String reg) 将字符串按照reg的规则分割

替换:

String replaceAll(String reg, String replacement)用replacement将字符串按照reg的规则替换


正则表达式:
x 字符x

[abc] a,或者b,或者c

[^abc] 除了a,b或者c的任意字符

[a-zA-Z] a到z,A到Z的任意字符

. 任意字符

\d 0到9间任意数字

\s 空白字符[  \t \n \x0B \f \r]

\w 单词字符[ a-zA-Z_0-9]


^ 行开头

$ 行末尾

\b 单词界限(就是非单词字符)


X?     X出现0次或者1次

X*    X出现任意次

X+    X出现至少1次

X{n}    X恰好出现n次

X{n,}   X至少出现n次
X{n,m} X至少出现n次,最多出现m次


晚上6:00阶段测试,7点交卷走人。

今天隔壁没来。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
2023-07-14T05:18:42.813472Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33) starting as process 30413 2023-07-14T05:18:42.827066Z 0 [Warning] [MY-010075] [Server] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: e64114ff-2205-11ee-870e-080027f67bef. 2023-07-14T05:18:42.831208Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory. 2023-07-14T05:18:42.831274Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-07-14T05:18:43.035632Z 1 [ERROR] [MY-013090] [InnoDB] Unsupported redo log format (v0). The redo log was created before MySQL 5.7.9 2023-07-14T05:18:43.035675Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-07-14T05:18:43.468804Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine. 2023-07-14T05:18:43.469038Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-07-14T05:18:43.469053Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-07-14T05:18:43.469908Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.33) MySQL Community Server - GPL. 2023-07-14T05:25:59.141609Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33) starting as process 6178 2023-07-14T05:25:59.156401Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory. 2023-07-14T05:25:59.156446Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-07-14T05:25:59.356548Z 1 [ERROR] [MY-013090] [InnoDB] Unsupported redo log format (v0). The redo log was created before MySQL 5.7.9 2023-07-14T05:25:59.356610Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-07-14T05:25:59.793224Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine. 2023-07-14T05:25:59.793509Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-07-14T05:25:59.793525Z 0 [ERROR] [MY-010119] [Server] Aborting @
07-15

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值