How do I concatenate two strings in Java?

前端 未结 23 3089
长情又很酷
长情又很酷 2020-11-22 04:47

I am trying to concatenate strings in Java. Why isn\'t this working?

public class StackOverflowTest {  
    public static void main(String args[]) {
                


        
23条回答
  •  花落未央
    2020-11-22 05:00

    "+" not "."

    But be careful with String concatenation. Here's a link introducing some thoughts from IBM DeveloperWorks.

提交回复
热议问题