当前位置:网站首页>Simulated access
Simulated access
2022-07-03 14:03:00 【A ke】
public class Test{
static int[] arr=new int[30];
static int flag=0;
public static void main(String[] args){
put(20);
put(30);
put(40);
put(50);
put(60);
get();
get();
show();
}
public static void put(int x){
arr[flag]=x;
flag++;
}
public static void get(){
int re=arr[flag-1];
flag--;
System.out.println(re);
}
public static void show(){
for(int i=0;i<flag;i++){
System.out.println(arr[i]);
}
}
}
边栏推荐
- 又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了
- Global event bus
- 项目协作的进度如何推进| 社区征文
- Go: send the get request and parse the return JSON (go1.16.4)
- Common network state detection and analysis tools
- GoLand 2021.2 configure go (go1.17.6)
- Qt学习18 登录对话框实例分析
- JVM runtime data area
- [technology development-24]: characteristics of existing IOT communication technology
- jvm-类加载
猜你喜欢
Qt学习17 对话框及其类型
Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)
【吉林大学】考研初试复试资料分享
GoLand 2021.1.1: configure the multi line display of the tab of the open file
Bidirectional linked list (we only need to pay attention to insert and delete functions)
Summary of common error reporting problems and positioning methods of thrift
[email "/>
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email
Qt学习25 布局管理器(四)
FPGA测试方法以Mentor工具为例
随机推荐
jvm-类加载
[技術發展-24]:現有物聯網通信技術特點
SQL Injection (POST/Select)
Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
Bidirectional linked list (we only need to pay attention to insert and delete functions)
Similarities and differences of sessionstorage, localstorage and cookies
Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market
3D vision - 2 Introduction to pose estimation - openpose includes installation, compilation and use (single frame, real-time video)
Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
Spring cup eight school league
金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂
[understanding by chance-37]: the structure of human sensory system determines that human beings are self-centered
Flutter dynamic | fair 2.5.0 new version features
Go 1.16.4: purpose of go mod tidy
There is nothing new under the sun. Can the meta universe go higher?
windos 创建cordova 提示 因为在此系统上禁止运行脚本
交联环糊精金属有机骨架负载甲氨蝶呤缓释微粒|金属-有机多孔材料UiO-66负载黄酮苷类药物|齐岳
page owner特性浅析
怎样删除对象的某个属性或⽅法