当前位置:网站首页>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]);
}
}
}边栏推荐
- Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
- 金属有机骨架MOFs装载非甾体类抗炎药物|ZIF-8包裹普鲁士蓝负载槲皮素(制备方法)
- windos 创建cordova 提示 因为在此系统上禁止运行脚本
- [how to earn a million passive income]
- 3D vision - 2 Introduction to pose estimation - openpose includes installation, compilation and use (single frame, real-time video)
- QT learning 24 layout manager (III)
- PhpMyAdmin stage file contains analysis traceability
- The solution of Chinese font garbled code in keil5
- How to use lxml to judge whether the website announcement is updated
- Logback log sorting
猜你喜欢

Using registered classes to realize specific type matching function template

Flutter dynamic | fair 2.5.0 new version features

SQL Injection (AJAX/JSON/jQuery)

Ocean CMS vulnerability - search php

QT learning 25 layout manager (4)

Golang - command line tool Cobra

可编程逻辑器件软件测试

Current situation, analysis and prediction of information and innovation industry

jvm-对象生命周期

QT learning 24 layout manager (III)
随机推荐
Windos creates Cordova prompt because running scripts is prohibited on this system
“又土又穷”的草根高校,凭什么被称为“东北小清华”?
Qt学习17 对话框及其类型
MySQL data processing value addition, deletion and modification
消息订阅与发布
C language standard IO function sorting
Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
JVM object lifecycle
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email
Global event bus
Ocean CMS vulnerability - search php
Uniapp skills - dom display and hiding
[机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心
Qt学习22 布局管理器(一)
JVM runtime data area
从零开始的基于百度大脑EasyData的多人协同数据标注
MySQL 数据处理值增删改
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
Rasp implementation of PHP
Qt学习24 布局管理器(三)