I am trying to concatenate strings in Java. Why isn\'t this working?
public class StackOverflowTest { public static void main(String args[]) {
In java concatenate symbol is "+". If you are trying to concatenate two or three strings while using jdbc then use this:
+
String u = t1.getString(); String v = t2.getString(); String w = t3.getString(); String X = u + "" + v + "" + w; st.setString(1, X);
Here "" is used for space only.