日期:2014-05-18 浏览次数:20896 次
input.split("[A
------解决方案--------------------
B
------解决方案--------------------
C
------解决方案--------------------
D]、");
public class Test {
static String input = "1、下列属于负责制定统一的支付结算法律制度的是( )。"
+ "A、中国人民银行总行"
+ "B、中国银行总行"
+ "C、国家政策性银行"
+ "D、商业银行总行"
+ "正确答案:A";
public static void main(String[] args) {
String regex = "[A-D]、
------解决方案--------------------
正确答案:";
System.out.println(input.split(regex)[0]);
System.out.println(input.split(regex)[1]);
System.out.println(input.split(regex)[2]);
System.out.println(input.split(regex)[3]);
System.out.println(input.split(regex)[4]);
System.out.println(input.split(regex)[5]);
}
}
package test0320;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
public class TopicStorage {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
File file = new File("E:\\test\\topic.txt");
String sbf[][] = new String[100][6];
try {
BufferedReader br = new BufferedReader(new InputStreamReader(
new FileInputStream(file)));
String str = null;
int i = 0;
int j = 0;
while ((str = br.r