搜索资源列表
Java学习示例代码
- /** The CatDist class is for representing a distribution of categories. A * CatDist object is produced by a categorizer during the scoring process. * A loss function may optionally be applied to the CatDist. <P> * It is a
java3
- 创建一个包装学生信息的java类:包括name,number, age,height,创建该对象的数组用于表示n个学生的信息,并具备显示所有学生信息,查找某个学生的功能。(有输入流,输入数据,使用hash表存储数据) 包含相关代码和运行结果-Create a package of java category of student information: including name, number, age, height, create the object array used
DataStrcturs
- 用java语言实现对有序数组的排序,以及添加、删除功能。-Using java language and orderly array of the sort, as well as add, delete function.
cifa(4.0)
- 用直接分析法编制类C语言子集的词法分析程序。在本词法分析程序模块中,主要分析自定义的类C语言的词法。自定义的语言主要包括数组定义、函数定义、结构体定义的语句,运算符号主要为特殊符号表里所定义的各类运算符。 设计要求简要讲解词法分析器的构造技术,设计此法分析器。词法分析程序的主要功能是读入源程序,输出单词符号。并提供出错处理。 -Prepared by direct analysis of a subset of C-language lexical analysis program.
timu
- 这个题目主要通过调用函数和数组来解决,通过两个调用函数来解决问题-The main subject and the array by calling the function to solve, by calling the function to solve the problem of two
Scaner
- 假设有许多不同类的对象,且将它们放在一个数组中,然后使用同样的函数调用堆它们执行特定的操作。-Virtual function: Suppose there are many different classes of objects, and place them in an array, then use the same function call stack them to perform specific operations.
nixu
- 用Java编程,实现的功能是把一个数组里的元素逆序输出。-Using Java programming, the function is to reverse the elements of an array output.
Main
- 附件中演示了java中线程的创建和使用,所实现的功能是使用线程实现求取二维数组中的最大值-Java in the annex demonstrates thread creation and use of the function is achieved using two-dimensional array of thread to achieve the maximum strike
drawingpanel
- Java 写的画图板,通过这个小程序,大家可以了解到:建立输入输出流、按钮数组,存放以下名称的功能按钮、创建基本操作按钮,包括"新建"、"打开"、"保存"等、定义铅笔画,也就是用鼠标拖动着随意绘图、绘制以指定颜色填充的实心矩形、绘制以指定颜色填充的实心椭圆、绘制以指定颜色填充的实心圆角矩形、橡皮擦,可用来擦去已经绘制好的图案、选择颜色按钮,可用来选择需要的颜色、选择线条粗细的按钮,输入需要的数值可以实现绘图线条粗细的变化…… -Java to write the drawing board,
HashFunction
- A simple hash function-The input of this hash function is a stream of binary data which is read from file. The data is encrypted by each 32bits. Each block first is initialized by doing XOR with the modified ciphertext and a random binary array, and
split-String
- 写了一个高效的分离字符串,主要是基于字节数组实现,比API里面的函数实现高效-Write an efficient separation of strings, mainly based on the byte array to achieve than the API function inside Efficient
dogs-name
- this code is using array function. the array consist of the name of the dogs. So if we input the number it will display that dog names.
food-menu
- this code is using array function. The arrays contain the foods menu and if we input the number it will appear the food which located in that array.
qq
- 编写一个函数,要求借助一个堆栈吧一个数组中的数据元素逆置-Write a function that requires an array with a stack it against the set of data elements
java_array
- 最基本的JAVA的数组描述实现其功能,实现JAVA中数组的创建,存数,简单输出。-Describe the basic array of JAVA to achieve its function, to achieve the creation of an array in JAVA, save a few, simple output.
Student
- 设计3个类,分别是学生类Student,本科生类Undergraduate,研究生类Postgraduate,其中Student类是一个抽象类,它包含一个学生的基本信息如姓名、平均成绩等,及一个计算课程成绩等级的抽象方法。类Undergraduate和Postgraduate是其子类,它们计算课程成绩等级的方法有所不同(自己设计)。设计一个学生数组,既能放本科生对象又能放研究生对象。编写测试类测试以上功能。-Design of 3 categories, respectively, is a s
TableTest
- 整数集合是由多个不同的整数构成。请根据下列要求,设计一个集合类。 (1)集合中的元素保存在一个一维数组中。 (2)在类中定义构造方法。在为对象赋初值的同时,保证集合中元素的唯一性。 (3)在类中实现“求两个集合的并集”的功能。 (4)在类中实现“求两个集合的交集”的功能。 (5)在main方法中完成相关测试。 -Integer set is composed of a plurality of different integers.Please according to
SecondMax
- 采用多种方法实现求一个整形数组的第二大数,同时提供了一个求任意大数的函数。有详细代码注释及主要思路、时间复杂度的分析。-Many ways to search the second maximum number of an array of Integer,meantime there is one function can finish searching any maximum number.There are enough comments and the ideas to design
shiyan
- 在main函数中调用函数fun(int[] a, int m),(其中m是在main中用键盘输入的小于100的整数),用fun 函数找出大于整数m,并且邻接m的5个素数,将这5个素数,用a数组接收,并在main中输出;(请根据题 目完成main和fun函数的编写)。int static fun(int[] a, int m)-In the main function calls the function fun, (int [] a, int m) (where m is a
sourceParserDemo
- 1. 识别java源码的语法结构,生成结点类型为具体源码成份的结点树。 2. 解析Java源码并从指定的方法入口处开始执行,在执行的过程中可以执行外部插入的执行逻辑。类似于AOP,但所截获的目标可以是方法也可以是任意细粒度的代码。 3. 解析Java源码并从指定的方法入口处开始执行,在执行过程中对不合理的代码进行预警。预警功能是我兴趣所在,亦将得到大力加强。 4. 静态处理: ① 对源码进行合法性检查,以保证其符合具体项目中的要求。类似于Java代码缺陷自
