Java printing a string containing multiple integers

后端 未结 7 1825
别那么骄傲
别那么骄傲 2021-01-19 08:16

Just starting learning java today and can\'t seem to figure this out. I am following the tutorial on learnjavaonline.org which teaches you a few things and then asks you to

7条回答
  •  长情又很酷
    2021-01-19 08:44

    public class Main {
        public static void main(String[] args) {
    
           int b = 3110;
           int d = 0;
           String e = "orld";
           double f = 2;
           boolean g = true;
           System.out.println("H" + b + " " + "w" + d + e + " " + f + " " + g);
        }
    }
    

提交回复
热议问题