import java.util.Scanner;public class Test15 {    public static void main(String[] args) {        // TODO Auto-generated method stub        for (int i = 0; i < 1000; i++) {                        if (i % 3 == 0) {                System.out.print(i+&quo…
public class Test21 {    public static void main(String[] args) {        // TODO Auto-generated method stub        int sum = 0;        int[] array = new int[sum];                int index=0;        for (int i = 1; i < 100; i++) {            if (i % 3…
public int binarySearch(int[] data,int aim){//以int数组为例,aim为需要查找的数 int start = 0; int end = data.length-1; int mid = (start+end)/2;//a while(data[mid]!=aim&&end>start){//如果data[mid]等于aim则死循环,所以排除 if(data[mid]>aim){ end = mid-1; }else if(data[…
//输入数字个数来产生数字并且比较大小 import java.util.Scanner;public class Test1 {     public static void main(String[] args) {        Scanner sc = new Scanner(System.in);        System.out.println("请输入你要输入的数字个数:");        int num = sc.nextInt();        int[] ar…
import java.util.Scanner;public class Test_while {    public static void main(String[] args) {        // TODO Auto-generated method stub                Scanner input=new Scanner(System.in);                /*int sum=0;        int score=0;        int c…
import java.util.Scanner;public class threeTest {    public static void main(String[] args) {        Scanner input = new Scanner(System.in);        System.out.println("请输入第一条边:");        int a = input.nextInt();        System.out.println("请…
import java.util.ArrayList;import java.util.Scanner;public class Test8 {    public static void main(String[] args) {        Scanner input = new Scanner(System.in);        System.out.println("请输入:");        String number = input.next();        Ar…
import java.util.Scanner;public class Test6 {    public static void main(String[] args) {        // TODO Auto-generated method stub                        Scanner input =new Scanner(System.in);                System.out.println("pleace input your sex…
public class Test24 {    public static void main(String[] args) {        // 鸡蛋0.1元一个,鸭蛋3元一个,鹅蛋6元一个.求一百元买一百个蛋.        for (int i = 1; i <= 1000; i++) {            for (int j = 1; j <= 100 / 3; j++) {                for (int k = 1; k <= 100 / 6; k+…
import java.util.Scanner;public class Test13 {    public static void main(String[] args) {        // TODO Auto-generated method stub        Scanner input = new Scanner(System.in);        int number = 0;                do{            System.out.printl…