import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in);int a = cin.nextInt(), b = cin.nextInt();System.out.println(a + b);} } 用这个试试
一道Java的题目 求编程Problem Description:Write a program that reads integers,findsthe largest of them,and counts its occurrences.Assume that the input endswith number 0.Suppose that you entered 3 5 2 5 5 5 0; the program finds thatthe largest