cfnr.net
当前位置:首页 >> JAVA期末考试 高分 >>

JAVA期末考试 高分

package test;import java.util.Arrays;import java.util.Scanner;public class Chengji {public static void main(String[] args) { int Math; int Phi; int Eng; Scanner scan = new Scanner(System.in); System.out.println("[输入你的数学成...

package image;import java.util.Scanner;public class Test { public static void main(String[] args) { String[][] list; // 学生数组 int count = 0; // 学生人数 int field = 2; // 属性个数 Scanner sc = new Scanner(System.in); System....

int[] arr = {1,2,3,3,3,3,3,4,2,5}; Arrays.sort(arr); Arrays.fill(arr, 0, 1, 0); Arrays.fill(arr, 9, 10, 0); int sum = 0; for(int item : arr){ System.out.println(item + ""); sum += item; } System.out.println(sum+""); while的时候...

import java.io.*; public class SF { public static void main(String[] args)throws IOException { float[][] sf=new float[6][4]; float[] sum2=new float[6]; int i,j; double sum=0,max=0,min=100; String temp; InputStreamReader reader=...

package com.sun.test; import java.util.List; public class Student { private String name; //学生姓名 private List subs;// 学生成绩 public Student(String name,List subs){ this.name = name; this.subs = subs; } public String getNam...

public static void main(String[] args) { System.out.println("请输入"); Scanner input=new Scanner(System.in); int []a=new int[10]; for(int i=0;i

Java 8 以上(包含java8) Lambda 方式,这种方式比较简洁,代码如下: import java.util.ArrayList;import java.util.List;import java.util.Scanner;public class App20 {public static void main(String[] args) {Scanner scanner = new Scan...

public static void main(String[] args) {int[] scores = {98,93,10,34,69};int sum = 0; //总分double avg = 0; //平均分int min = scores[0]; //最低分int max = scores[0]; //最高分for (int i = 0; i < scores.length; i++) {if(scores[i]m...

package test; /** * 学生类 * @author shuaige */ public class Student { private String name; private int score; public Student(){} public String getName() { return name; } public void setName(String name) { this.name = name; } p...

可以百度私信聊

网站首页 | 网站地图
All rights reserved Powered by www.cfnr.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com