08 2021 档案
摘要:1 package array; 2 /* 3 编写程序,使用一维数组,模拟栈数据结构,包含压栈、弹栈两个方法 4 */ 5 6 public class test01 { 7 public static void main(String[] args) { 8 mystack a=new myst
阅读全文
posted @ 2021-08-23 20:51
侠客v
摘要:1.包: import java.util.Scanner 2.使用方法: Scanner reader=new Scanner(System.in); 其实上图的意思就是,比如:nextlnt():只读取int值,就是只能读取整数类型的数据,如果输入了非整型的数据(浮点型字符串等)就会报错。 ne
阅读全文

浙公网安备 33010602011771号