新手看不懂这个代码

package yqs;
import java.util.Scanner;
public class time {
public static void main(String[] args) {
 Scanner input = new Scanner(System.in);
 System.out.println("Enter an integer for seconds:");
 int seconds = input.nextInt();
 int minutes = seconds/60;
 int remainingSeconds = seconds%60;
 System.out.println(seconds + "seconds is"+minutes +" minutes and"+ remainingSeconds + "seconds");
}

}

如以上代码

Scanner input = new Scanner(System.in);
 System.out.println("Enter an integer for seconds:");这两个有什么关系

慕粉1145407289
浏览 1223回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java