当前位置:网站首页>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]);
}
}
}边栏推荐
- Qt学习23 布局管理器(二)
- Failure of vector insertion element iterator in STL
- 28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;
- Unity render streaming communicates with unity through JS
- Using registered classes to realize specific type matching function template
- Qt学习17 对话框及其类型
- How to delete an attribute or method of an object
- There is nothing new under the sun. Can the meta universe go higher?
- 金属有机骨架MIL-88负载阿霉素DOX|叶酸修饰UiO-66-NH2负载阿霉素[email protected]纳米粒子
- 可编程逻辑器件软件测试
猜你喜欢

QT learning 25 layout manager (4)

UiO-66-COOH装载苯达莫司汀|羟基磷灰石( HA) 包裹MIL-53(Fe)纳米粒子|装载黄芩苷锰基金属有机骨架材料

JVM object lifecycle

3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
![[développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes

【吉林大学】考研初试复试资料分享

可编程逻辑器件软件测试

Multi person collaborative data annotation based on Baidu brain easydata from scratch

JVM family - overview, program counter day1-1

全局事件总线
随机推荐
Use docker to build sqli lab environment and upload labs environment, and the operation steps are provided with screenshots.
Multi person collaborative data annotation based on Baidu brain easydata from scratch
[技术发展-24]:现有物联网通信技术特点
Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)
Leetcode-1175.Prime Arrangements
[556. Next larger element III]
Go language web development series 28: solve cross domain access of CORS with gin contrib / CORS
全局事件总线
信创产业现状、分析与预测
QT learning 23 layout manager (II)
PhpMyAdmin stage file contains analysis traceability
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
Go: send the get request and parse the return JSON (go1.16.4)
SQL Injection (POST/Select)
Go language unit test 4: go language uses gomonkey to test functions or methods
Golang — template
核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)
小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。
JS download files through URL links
[understanding by chance-37]: the structure of human sensory system determines that human beings are self-centered