标签: java
我正在尝试在name.get之后添加问号和空格,但我无法弄清楚如何。
有人可以帮助我吗?
System.out.print("What were the annual sales for " + name.get(0));
答案 0 :(得分:0)
只需附加一个字符串?
System.out.print("What were the annual sales for " + name.get(0) + " ?");