java的一个小问题
<%
RandomAccessFile st= new RandomAccessFile("D:\web\edu\record.txt","r");
System.out.println(st.readLine());
StringTokenizer st = new StringTokenizer(record,"&");
int i=0;
String[] ind=new String[4];
while (st.hasMoreTokens())
{
ind[i]=st.nextToken();
i++;
}
%>
我写的这段代码目的是想用RandomAccessFile类对象的readLine() 方法,一次读取一条记录。然后用StringTokenizer类来分析出记录中的不同属性,但是运行后提示Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
错误
麻烦大哥大姐们提示下错在哪,怎么改?
另外我安装了jdk,但那个帮助文档在哪里可以看的到呢?
Java code:
<%
RandomAccessFile st= new RandomAccessFile("D:\web\edu\record.txt","r");
System.out.println(st.readLine());
StringTokenizer st = new StringTokenizer(record,"&"); //这个record是什么东西?
int i=0;
String[] ind=new String[4];
while (st.hasMoreTokens())
相关问答:
不知道是什么原因,我该如何处理,请大虾们指教了,小弟在此谢过。。。。
错误信息如下:
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context t ......
我想做够购物车用session 但是不知道怎么获取购买数量 谁有具体的代码吗 希望能割舍
下面是购物车的核心代码
有了这个 就应该能够做出来吧
Java code:
public void doPost(HttpServletRequest reque ......
查API,看到FeatrueFactory有这个方法
public Feature createPolyLine(double[][] thePoints,
R ......
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.HttpURLConnection;
import java.net.URL;
import java ......