使用 java 进行文件计算
【问题】
Hi everyone, I’m trying to write a small program in java. The program is suppose to let someone enter some information and save it into a file. Then, we can search the information using the same program. So far, I don’t know how to save and retrieve the information from a file. I’m new to programing any help or recommendation will be appreciate it.
the program so far,
package CustomerInfo;
import java.awt.Color;
import java.awt.Font
…..
【回答】
文件不是数据库,不能用 SQL 语句直接访问, JAVA 本身也没有提供这类运算的类库。这种情况下可以考虑用 SPL 协助 JAVA 来实现,详情参考: