157:用 Read4 读取 N 个字符
This commit is contained in:
parent
fa5083de29
commit
364ce9a235
12
src/main/java/com/code/leet/entiy/Reader4.java
Normal file
12
src/main/java/com/code/leet/entiy/Reader4.java
Normal file
@ -0,0 +1,12 @@
|
||||
package com.code.leet.entiy;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: Administrator
|
||||
* @date: 2022/3/19 21:23
|
||||
*/
|
||||
public class Reader4 {
|
||||
protected int read4(char[] buf4) {
|
||||
return Math.min(buf4.length, 4);
|
||||
}
|
||||
}
|
@ -83,6 +83,8 @@
|
||||
|
||||
package leetcode.editor.cn;
|
||||
|
||||
import com.code.leet.entiy.Reader4;
|
||||
|
||||
//157:用 Read4 读取 N 个字符
|
||||
public class ReadNCharactersGivenRead4 {
|
||||
public static void main(String[] args) {
|
||||
|
Loading…
Reference in New Issue
Block a user