登录
首页 » java » 用java查找是否存在指定数据

用java查找是否存在指定数据

于 2023-03-16 发布 文件大小:8.64 kB
0 125
下载积分: 2 下载次数: 1

代码说明:

java学习,package args;//求和public class argsDemo {    public void search(int n,int... a){        boolean flag=false;        for(int i:a){            if(i==n)            {                flag=true; break;            }        }        if(flag)        {            System.out.println("找到了!");        }        else{            System.out.println("没找到!");        }    }    public static void main(String[] args){        argsDemo ad=new argsDemo();    &

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 学生信息管理系统
    资源描述这是一个中学的学生成绩管理系统,管理员登录后可以实现:学生信息录入,学生信息查看,课程信息录入,课程信息预览,成绩信息录入,成绩信息预览。
    2023-08-31 18:30:08下载
    积分:1
  • Java_zinengka_youhua
    说明:  针对复杂的传统Java智能卡指令解析问题,结合Applet的部署特点,提出了指令预解析的概念 给出了转换后的Applet文件(CAP,Converted Applet file)中导入组件、常数池和导出组件的预解析优化存储结构及包注册表结构,使用定长存储结构替代原有的变长存储结构以加快查找过程,引入了导出组件辅助索引表以加快外包类的解析过程 设计了基于优化后组件的静态域、静态方法和类访问字节码指令的快速解析流程,将解析算法的时间复杂度降为常数阶 在Applet下载过程中通过预解析来生成优化后的组件存储结构,在执行过程中依据快速解析流程来完成静态域、静态方法和类对象的快速访问,从而缩短了Applet运行时的解析时间.测试结果表明,在不改变标准Applet下载、运行流程的情况下,该方法有效地减少了卡内存储器的访问次数,缩短了解析算法的执行时间,提高了Applet执行的整体性能. (For a complex of traditional Java smart card command parsing problems with the Applet deployment characteristics of proposed pre-analytic concept of instruction gives converted Applet file (CAP, Converted Applet file) to import components and export components of constant pool pre-analytical optimization of storage structure and package the registry structure, and the use of fixed-length storage structure replaced the original variable-length storage structure to speed up the search process, the introduction of secondary index table to export components to speed up the resolution process outsourcing category designed based on optimization After the components of the static fields, static methods and class byte code instructions to access the rapid resolution processes, analytical methods will be reduced to constant time complexity order in Applet download process through pre-parsing to generate the optimized storage structure components , in the implementation process based on rapid)
    2010-03-21 12:42:59下载
    积分:1
  • rfc7033.tar
    Plain text version of RFC 7033 describing the WebFinger protocol.
    2014-06-29 12:20:09下载
    积分:1
  • 实现实时图像传输,用Java VC,VC开发Lib完成数据采集,Java开发上层图像传输...
    实现实时图像传输,用Java VC,VC开发Lib完成数据采集,Java开发上层图像传输-Real-time image transmission, using Java VC, VC Development Lib complete data acquisition, Java development of the upper image transmission
    2022-03-05 22:00:07下载
    积分:1
  • 这个完整的源代码,为我们的移动游戏冬季运动。源代码是…
    This the full source code for our mobile game Winter Sports. The source code is distributed under the terms of the GNU Public License.-This the full source code for our mobile g ame Winter Sports. The source code is distribut ed under the terms of the GNU Public License.
    2022-05-14 17:00:04下载
    积分:1
  • JAVA案例开发集锦
    说明:  Java development related books
    2020-06-20 13:40:01下载
    积分:1
  • 获取计算机的信息
    使用java自带的包获取系统数据,容易找不到包,尤其是内存信息不够准确,所以选择使用sigar获取系统信息。  下载地址:http://sourceforge.net/projects/sigar/files/latest/download?source=files     解压压缩包,将lib下sigar.jar导入eclipse的CLASSPATH中,再将sigar-x86-winnt.dll存入Java的bin目录即可。
    2022-03-17 04:06:48下载
    积分:1
  • erp
    基于Hibernate+servlet实现,库存管理.库存基本功能已实现使用myeclipse(Hibernate+ servlet-based implementation of inventory management. The basic functions of inventory has been implemented using myeclipse)
    2011-01-05 13:22:50下载
    积分:1
  • Common-library
    常用类库 包括vector 几何与映射 Stringdokenizer等(Common library)
    2013-12-15 09:33:25下载
    积分:1
  • 人力资源管理系统
    简单的 人力资源管理系统!包含 登陆模块,邮件管理模块,请假模块等等!很适合初学者学习!能很好的联系框架知识,所用数据库为MYSQL!java web jsp ...
    2022-03-19 05:58:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载