JAVA问题String literal is not properly closed by a double-quote
Posted 郑州大学计算机李银霞
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JAVA问题String literal is not properly closed by a double-quote相关的知识,希望对你有一定的参考价值。
String literal is not properly closed by a double-quote
这个错误:string字串没有以双引号结束
String DBURL = "jdbc:oracle:thin:@192.168.1.25:1521:ora10g";
这句最后面少一个双引号
stmt.executeUpdate("INSERT INTO user(account,password,email,qq,phone,address,words)VALUES(‘"+str1+"‘,‘"+str2+"‘,‘"+str4+"‘,‘"+str5+"‘,‘"+str6+"‘,‘"+str7+"‘,‘"+str8+"‘)");
通常情况都是标点弄错了,或是位置不对,只要仔细检查就会找到问题的所在。
以上是关于JAVA问题String literal is not properly closed by a double-quote的主要内容,如果未能解决你的问题,请参考以下文章
解决编译时出现的警告:format string is not a string literal (potentially insecure)
react 使用 ref 报错 ,[eslint] Using string literals in ref attributes is deprecated. (react/no-string-
java 生成12位随机数,解决The literal 9999999999999 of type int is out of range 问题
[MongoDB]虽然查询不包含$literal,但错误信息显示$literal is not supported