以下是在字符串之间打印整数的Java程序-
public class Demo{ public static void main(String[] args){ System.out.println("The equals symbol is present between two integer values "); System.out.println(45+5 + "=" +(56+11)); System.out.println(45+5 + " equals symbol " +(56+11)); } }
输出结果
The equals symbol is present between two integer values 50=67 50 equals symbol 67
名为Demo的类包含在两个字符串之间打印整数值的主要函数。