求大神指导哪写错了 。该怎么解决。 跪谢!!!
解决方案 »
- 高手,怎么重写writeStreamHeader
- 有没有能入门的Java语言的书籍,帮忙推荐一下吧~~~
- Jscrollpane水平滚动条获得Jscrollpane里面的JTable的列号
- 哪位兄弟帮忙看下?这个程序运行不出来
- 请教写过JAVA滑行菜单的朋友
- org.apache.commons是JDK里的吗
- [新手问题]分页+条件查询的问题,请大哥进
- 用applet链接数据库.....?
- Socket进行文件上传时,服务端如何先获取文件的扩展名?
- udp 传输 为什么我的服务器程序只能在第一次运行时收到信息
- java 如何将多维数组与多维数组 拼接起来
- 【新手程序员学生,求教】java关于单链表的问题
The backslash character ('\') serves to introduce escaped constructs, as defined in the table above, as well as to quote characters that otherwise would be interpreted as unescaped constructs. Thus the expression \\ matches a single backslash and \{ matches a left brace.
It is an error to use a backslash prior to any alphabetic character that does not denote an escaped construct; these are reserved for future extensions to the regular-expression language. A backslash may be used prior to a non-alphabetic character regardless of whether that character is part of an unescaped construct. Backslashes within string literals in Java source code are interpreted as required by The Java™ Language Specification as either Unicode escapes (section 3.3) or other character escapes (section 3.10.6) It is therefore necessary to double backslashes in string literals that represent regular expressions to protect them from interpretation by the Java bytecode compiler. The string literal "\b", for example, matches a single backspace character when interpreted as a regular expression, while "\\b" matches a word boundary. The string literal "\(hello\)" is illegal and leads to a compile-time error; in order to match the string (hello) the string literal "\\(hello\\)" must be used.
The backslash character ('\') serves to introduce escaped constructs, as defined in the table above, as well as to quote characters that otherwise would be interpreted as unescaped constructs. Thus the expression \\ matches a single backslash and \{ matches a left brace.
It is an error to use a backslash prior to any alphabetic character that does not denote an escaped construct; these are reserved for future extensions to the regular-expression language. A backslash may be used prior to a non-alphabetic character regardless of whether that character is part of an unescaped construct. Backslashes within string literals in Java source code are interpreted as required by The Java™ Language Specification as either Unicode escapes (section 3.3) or other character escapes (section 3.10.6) It is therefore necessary to double backslashes in string literals that represent regular expressions to protect them from interpretation by the Java bytecode compiler. The string literal "\b", for example, matches a single backspace character when interpreted as a regular expression, while "\\b" matches a word boundary. The string literal "\(hello\)" is illegal and leads to a compile-time error; in order to match the string (hello) the string literal "\\(hello\\)" must be used.
\\表示对\进行转义,所以你要多那个符号进行转义,必须在前面加\\