2019年3月13日
摘要: public class lianxi{ public static void main(String[] args){ int[] arr = new int[]{11,22,55,88,44,99}; int a=0; for(int i=0;i<arr.length-1;i++){ if(ar 阅读全文
posted @ 2019-03-13 10:03 ~王~ 阅读(115) 评论(0) 推荐(0) 编辑
摘要: /*public class zuoye{ public static void main(String[] args){ int sum=0; for(int i=0;i<=100;i++){ if(i%2==0){ sum=sum+i; } } System.out.println("1 100 阅读全文
posted @ 2019-03-13 08:32 ~王~ 阅读(149) 评论(0) 推荐(0) 编辑
摘要: /*import java.util.Scanner;public class zuoye{ public static void main(String[] args){ System.out.println("请输入考试成绩"); Scanner a= new Scanner(System.in 阅读全文
posted @ 2019-03-13 08:31 ~王~ 阅读(154) 评论(0) 推荐(0) 编辑
摘要: /*import java.util.Scanner;public class zuoye{ public static void main(String[] args){ System.out.println("请输入值"); Scanner a=new Scanner(System.in); i 阅读全文
posted @ 2019-03-13 08:30 ~王~ 阅读(405) 评论(0) 推荐(0) 编辑
摘要: /*import java.util.Scanner;import java.util.Random;public class lianxi1{ public static void main(String[] args){ Random a=new Random(); int d =a.nextI 阅读全文
posted @ 2019-03-13 08:29 ~王~ 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //定义一个类/*public class zuoye{ //主方法 public static void main(String[] args){ //顶部 //控制台输出 System.out.println(" 商品库存清单 "); //控制台输出 System.out.println("品牌 阅读全文
posted @ 2019-03-13 08:28 ~王~ 阅读(87) 评论(0) 推荐(0) 编辑
摘要: public class lianxi1{ public static void main(String[] args){ int b = 123; int g = 123%120; int bai = 123/100; int shi = (123%100)/10; System.out.prin 阅读全文
posted @ 2019-03-13 08:27 ~王~ 阅读(79) 评论(0) 推荐(0) 编辑
摘要: public class jieri{ public static void main(String[] args){ double price=100; price=(price>=50)?price*0.88:price*1; System.out.println(price); }} 阅读全文
posted @ 2019-03-13 08:26 ~王~ 阅读(196) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src= "js/jquery-1.8.3.js"></script> <script type="t 阅读全文
posted @ 2019-03-13 08:25 ~王~ 阅读(70) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script> function init(){ var d=document.getElementById("b"); var e=document.getEl 阅读全文
posted @ 2019-03-13 08:24 ~王~ 阅读(83) 评论(0) 推荐(0) 编辑