📄 processcontainers.java
字号:
import java.util.*;
import java.io.*;
/**
* This class contains methods to exhibit various container processes.
*
* @author iCarnegie
* @version 1.0.0
* @see MyObject
* @see MyObjectFormatException
* @see ArrayList
* @see BufferedReader
*/
public class ProcessContainers {
/**
* Removes each object whose field {@link MyObject#first} is less than
* field {@link MyObject#second}.
*
* @param arrayList {@link ArrayList} that contains objects of the class
* {@link MyObject}.
*/
public static void removeLess(ArrayList<MyObject> arrayList) {
// Place your code here
}
/**
* Returns a {@link ArrayList} object with all the objects whose both fields
* {@link MyObject#second} and {@link MyObject#second} are greater than
* <code>0.0</code>.
*
* @param reader a {@link BufferedReader} from which {@link MyObject} data
* are read
* @param DELIM a <code>String</code> with the delimiter used in the stream
* referenced by <code>reader</code>
* @return {@link ArrayList} with {@link MyObject} objects.
* @throws {@link IOException} if cannot read from the input stream
* @throws {@link MyObjecttFormatException} if receives a badly formed
* data
*/
public static ArrayList<MyObject> readPositives(
BufferedReader reader,
final String DELIM)
throws IOException, MyObjectFormatException {
// Place your code here
return null; // remove this; used so this file compiles
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -