搜索资源列表
myproject
- 此压缩文件解压后为eclipse的一个工程需要导入使用,同时用户需要在SQL server里面建立一个名为mydb的数据库,在此数据库中建立一个名为mytable的表,列名为bookid(int 型),bookname(String 型),bookprice(float 型)。-After extracting the compressed files for eclipse to import the required use of a project, at the same time us
LeitorTecladoConversor
- Simple class to read from keyboard. Already convert to simple type int, float, double or String
number_J2
- 當輸入字串中,以空格區隔開每一個單位字串,而輸出結果為int(正負號) double(正負號) string,進行單位字串的切割-When the input string to a space separates each unit of a string, while the output of the result is int (the sign) double (positive or negative number) string, for string cutting unit
Java_utilities
- 3 Useful utilities for any Java Programmer: 1. Random Number Generator Method - can generate random numbers in any interval even negative numbers. Changing (int) to (float) will give you float randoms. 2. isNarcissistic - Checks if a number is na
HowEasy
- 还是topcoder的一个问题,HowEasy编写的,用JAVA实现- Problem Statement ***Note: Please keep programs under 7000 characters in length. Thank you Class Name: HowEasy Method Name: pointVal Parameters: String Returns: int
EMPLOYEE
- 动1. 请构建一个名为Employee 的Class作为员工类,此类中包含:员工ID(int),姓名(String),性别(”F” or “M”), 年龄(int) 2. 创建至少20个Emplyee对象(ID不重复),存储在数组中; 3. 用户可以通过以下命令表达式在该数组中进行查询: -1. Please build a staff named Employee of the Class as a class, these include: Staff ID (int), nam
HelloProject
- 功能全面的占卜结果显示,输入姓名与星座,将会向服务器发送报告,返回结果并自动显示。-that no output is generated to be sent back to the client browser. Instead, it finds the horoscope from the information provided by the client, and then forwards that to another servlet called GiveHoros
jsp_mlzd
- 1.首先必须设置图片的目录 2.访问地址/index.jsp?ToPage=1 String url="/2/" //设置图片目录 int w=250 //设置图片宽度 int h=175 //设置图片高度 int ShowPage=12 //设置每页显示的图片数量-1 First you must set the image directory (2) access to the address/index.jsp? ToPage = 1 String url = &quo
StringIndexOutOf
- 个人原创代码:Java异常处理程序。编写Java Application程序,参考下面的程序,试修改程序,捕获相关异常,使得程序能正常运行。[提示:用错误数据测试,即可得到异常类名,运行时主方法参数输入 abc 测试] public class StringIndexOutOf{ public static void main(String args[]){ System.out.println("字符串索引越界异常") String str=args[0] System.ou
sourceParserDemo
- 1. 识别java源码的语法结构,生成结点类型为具体源码成份的结点树。 2. 解析Java源码并从指定的方法入口处开始执行,在执行的过程中可以执行外部插入的执行逻辑。类似于AOP,但所截获的目标可以是方法也可以是任意细粒度的代码。 3. 解析Java源码并从指定的方法入口处开始执行,在执行过程中对不合理的代码进行预警。预警功能是我兴趣所在,亦将得到大力加强。 4. 静态处理: ① 对源码进行合法性检查,以保证其符合具体项目中的要求。类似于Java代码缺陷自
student
- 1.编写一个学生类Student,包含的属性有:学号(String类型)、姓名(String类型)、性别(String)、年龄(int);方法有: say()返回类型是void ,功能是向屏幕打印一行字“I am a Student!”。 2.在上题的基础上,编写一个类TestStudent实现学生对象的添加,在main方法中增加Student对象,编写程序完成以下功能: 1) 增加学生, “姓名:张三、学号:0001、性别:男、年龄:22。” 2) 分别输出张三的学号,姓名,性
maopao
- 通过main(String[] args)方法中的字符串数组获取命令行传递的参数 注意从String int的类型转换,可以使用Integer类中的parseInt()方法(查阅JDK API文档)。 数组的创建与使用 冒泡排序算法-Main (String [] args) method an array of strings to obtain command line parameters passed Note String
Exception
- 在java.lang包中定义了Integer类作为int数据类型的对等类,其中定义了如下方法: public static Integer valueOf(String s) throws NumberFormatException 用于将字符串s转换成Integer对象。当s不符合整数格式时,该方法抛出NumberFormatException异常。请编写简单程序转换一字符串为Integer对象,用2种方法抛出NumberFormatException异常:一种由程序本身捕获并处理异常
person
- 类Person,包含以下属性: String name int age boolean gender Person partner。 为Person类写一个marry(Person p)方法,代表当前对象和p结婚,如若可以结婚,则输出恭贺信息, 否则输出不能结婚原因。要求在另外一个类中写一个主方法,来测试以上程序。 (下列情况不能结婚:1,同性;2,未达到结婚年龄,男<24,女<22;3,某一方已婚)-String name In
integer-to-string
- Test Int To String Source Code for Java scr ipt.
jsoup_xici1.7.3
- 加入对代理服务器的支持,不考虑账号验证的问题。重载了方法 connect() 调用方法: Jsoup.connect(String url,String proxyhost,int proxyport) org.jsoup.Connection interface Request 添加抽象方法getProxyhost,getProxyport,setProxyhost,setProxyport org.jsoup.helper.HttpConnection
bukepai
- 1.写一个程序提示用户键入某一货币数量(以分为单位),该程序应计算出如何用最少量的1元,50分,10分和1分硬币得到该数目。如195分最少可以用一个1元硬币,1个50分硬币,4个10分硬币和5个1分硬币组成。 注意:可以不用数组。 2.写一个程序可以对两个字符串进行测试,得知第一个字符串是否包含在第二个字符串中。如字符串”PEN”包含在字符串“INDEPENDENT”中。 可以利用字符串类的方法 boolean regionMatches(int toffset, String
ShoppingCartApplication
- private Product readProduct() throws IOException { final String DELIM = _ String name = int quantity = 0 double price = 0.0 StringTokenizer token = new StringTokenizer(stdIn.readLine(), DELIM) do //cycle to run
huaweiOJ-string-of-int-to-sort
- 华为oj闯关题 整形字符串排序。希望对做到华为oj上闯关题的同学们有一点点参考作用-huaweiOJ string of int to sort.I hope a little reference to the students who are preparing for the HUAWEI OJ checkpoints problem
lab1(2)
- The main job of the scanner is to identify and return the next token. The value to be returned includes: the token "name" (e.g., INTLITERAL). Token names are defined in the file sym.java the line number in the input file on which the toke