public class Demo {public static void main(String args[]) {int x = 10 ;double y = 20.2 ;long z = 10L;String str = "" + x + y * z ;System.out.println(str) ;}}
简单的字符串拼接 输出10202.0
你运行一下看看,没写过java,不知道具体细节,但这个程序应该是输出10202.*****号代表数字