会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
随顾
博客园
首页
新随笔
联系
订阅
管理
2021年12月27日
Scanner
摘要: package De;import java.util.Scanner;public class Demo04 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.ou
阅读全文
posted @ 2021-12-27 19:49 随顾
阅读(36)
评论(0)
推荐(0)
2021年12月21日
多态
摘要: package Oop;public class Learn01S06 { public static void main(String[] args) { //实际的对象是确定的,引用类型不确定 //new Student06(); //new Person05(); Student06 s1 =
阅读全文
posted @ 2021-12-21 23:02 随顾
阅读(39)
评论(0)
推荐(0)
2021年12月11日
稀疏数组
摘要: package Array;//稀疏数组public class Study09 { //棋盘 public static void main(String[] args) { //创建一个二维数组 11*11 0:没有棋子 1;黑棋 2:白棋 int[][] array1 = new int[11
阅读全文
posted @ 2021-12-11 15:48 随顾
阅读(26)
评论(0)
推荐(0)
2021年12月7日
用JAVA编写一个计算器
摘要: package Function;import java.util.Scanner;public class Calc { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); System.
阅读全文
posted @ 2021-12-07 17:04 随顾
阅读(106)
评论(0)
推荐(0)
数组array2
摘要: package Array;public class Study01 { public static void main(String[] args) { //定义一个数组 int [] nums; //创建一个数组(可存放五个int类型的数据) nums=new int[10]; //给数据中的元
阅读全文
posted @ 2021-12-07 17:02 随顾
阅读(43)
评论(0)
推荐(0)
数组array
摘要: package Array;//从内存分析public class Study03 { public static void main(String[] args) { //定义一个数组(动态初始化) int [] a=new int[5]; //long []a=new int[4];数组类型必须
阅读全文
posted @ 2021-12-07 17:01 随顾
阅读(47)
评论(0)
推荐(0)
2021年11月26日
Switch多选择结构02
摘要: package com.li;public class Switch01 { public static void main(String[] args) { //若没有break就会造成case穿透 //switch用于匹配一个具体的值 char grade ='p'; switch(grade)
阅读全文
posted @ 2021-11-26 22:22 随顾
阅读(31)
评论(0)
推荐(0)
Switch多选择结构01
摘要: package com.li;//JDK新特性,可以用字符串表达,字符的本质是数字//反编译 java···class(字节源码文件)...IDEApublic class Switch02 { public static void main(String[] args) { String name
阅读全文
posted @ 2021-11-26 22:21 随顾
阅读(25)
评论(0)
推荐(0)
If语句
摘要: package scanner;import java.util.Scanner;public class IfDemo01 { public static void main(String[] args) { Scanner scanner=new Scanner; System.out.prin
阅读全文
posted @ 2021-11-26 00:11 随顾
阅读(28)
评论(0)
推荐(0)
2021年11月25日
Scanner2
摘要: package scanner;import java.util.Scanner;public class Demo04 { public static void main(String[] args) { //我们可以输入多个数字,并求其总和和平均数,每输入一个数字用回车键来确认,通过非数字来结束
阅读全文
posted @ 2021-11-25 23:56 随顾
阅读(30)
评论(0)
推荐(0)
下一页
公告