我需要知道如何将vector转换为字符串并拆分JSP的字符串。
// Make sure that you use the same path/filename that you’ve saved earlier
Vector<String[]> vec1 = FileReaderWriter.readFileToVector ("?/MyTestFile.txt");
String vec2 = vec1.toString();
String split[] = vec2.split(",");
for (int i = 0; i < vec1.size(); i++)
{
// out.print("|");
for (int j = 0; j < vec1.elementAt(i).length; j++)
{
// out.print(vec1.elementAt(i)[j] + ",");
//out.print("blah");
// fieldlist.add(vec1.elementAt(i)[j]);
out.print("<br/>");
}
//out.print("blah");
问题是输出是乱码,它不打印矢量中的内容。
由于