嵌入变量很简单。比如:String name=“jack";System.out.println("your name is "+ name);还可以在右边继续+"And how old are you"。类似于字符串的直接拼装。
String sql = "select * from play where id ="+ x;