我试图在服务器上执行jar,如:java -jar file.jar,但我得到了以下错误:
A JNI error has occurred, please check your installationClass has been compiled by a more recent version of the Java Environment (class file version 55.0),this version of the Java Runtime only recognizes class file versions up
我正在用java编程,我需要替换String中的某些关键字。假设我的字符串是"Int hello1 \n Int hello11",我想将"hello1"替换为"a","hello11"替换为"b"。问题是当我说String.replaceAll("hello1", "a");原始字符串保持如下:Int a \n Int a1,如何防止替换hello11?
我该用什么