当前位置:网站首页>The circular queue is implemented in super detail. I understand it in a few seconds
The circular queue is implemented in super detail. I understand it in a few seconds
2022-06-22 09:14:00 【C_ x_ three hundred and thirty】
package com.Cx_330.run;
import org.junit.Test;
import java.io.*;
import java.math.BigDecimal;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class CCC {
public static void main(String[] args) {
Queue queue = new Queue(5);
boolean leap=true;
Scanner scanner = new Scanner(System.in);
String choice;
while (leap)
{
System.out.println(" Please enter the selection " +
"1. Add elements " +
"2. Get team leader elements " +
"3. Traverse the queue " +
"4. sign out ");
choice=scanner.next();
switch (choice){
case "1":
try {
System.out.println(" Please enter add element ");
int key=scanner.nextInt();
queue.add(key);
} catch (Exception e) {
边栏推荐
- 模板引擎,让交互变得优雅
- Local visualization method of xshell remote server tensorboard/visdom [one-step test is effective]
- [qnx hypervisor 2.2 user manual]5.6 close guest
- 5道面试题,拿捏String底层原理!
- MySQL中常用的SQL语句
- Find the size of cosine
- Unicode字符/静态非静态的访问
- container_ of
- The U.S. Department of justice established a national crypto enforcement team to combat illegal acts in related fields
- IS_ERR()
猜你喜欢

文件小能手---multer

User insight into the video industry in January 2022: active users began to pick up under the influence of holidays

Apprentissage automatique | nltk Erreur de téléchargement des données | solution d'erreur de téléchargement du corpus stopwords pour nltk

Jinglianwen Technology: product summary of machine learning AI dataset (III)
![[tensorboard] step on all minefields and solve all your problems](/img/35/fc0f7ed311bf7c0321e1257ff6a1a6.png)
[tensorboard] step on all minefields and solve all your problems

医疗信息管理系统数据库--MySQL

Opencv daily function histogram correlation (3)

希望越来越多的女性从事科技工作

It is hoped that more and more women will engage in scientific and technological work
![In the monorepo learning, execute NPM run build to report error[err\u require\esm] of ES module](/img/76/ec4776bcd452584290ef8bf5d0e06f.jpg)
In the monorepo learning, execute NPM run build to report error[err\u require\esm] of ES module
随机推荐
MySQL中常用的SQL语句
景联文科技:机器学习AI数据集产品汇总(三)
[tensorboard] step on all minefields and solve all your problems
Stream stream creation_ Operation_ Collection_ case
Comparison of interface abstract classes
Process status summary
container_ of
==Classic interview questions
Record some Oracle operation commands
IS_ ERR()
C语言刷题 | 用putchar输出Love(14)
General ASP reads CSV files and displays all rows and columns as tables
Map三种遍历方式,秒懂,你懂
There are three ways to traverse the map. Second, you know
两个线程各执行100次i++,得到的可能值
OpenCV每日函数 直方图相关(3)
Solid from entry to practice (end)
Find the size of cosine
Wireless routing attack and WiFi password cracking practice [penetration technology]
【node】node+短信api 实现验证码登录