搜索资源列表
perfect
- 用java 实现的动态规划求漂亮打印问题的一个实例-dynamic programming algorithm an example to solve perfect print problem
SquareRoot
- import java.io.* public class SquareRoot { public static void main ( String [ ] args ) { System.out.print("Enter a positive value: ") double value = 0 try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) String inputLine
Demo
- 现在初学JAVA的同学。。。。。。我特地写了一个输入三个数字,然后按升序排列显示的小程序。值得初学者借鉴。- public static void main(String[] args) throws Exception { int[] arr = new int[3] for (int i = 0 i < arr.length i++) { Scanner input = new Scanner(System.in) Sys
Sum
- 利用java语言实现计算另个数的和,从键盘接受两个数,计算和,打印到控制台上。-Use Java language implementation calculation of other number and, from the keyboard to accept two number, calculation and, print to control on the stage.
PrintCalendar
- 根据所给的年月。java在控制台下打印日历。-java print calend.
StudentTest
- 个人原创代码:编写Java Application程序,定义一个学生类(Student),属性有private的名字(name), public的年龄(age),专业(specialty)和封装name属性的方法:setName(),getName(),getspecialty()编写Application,创建一个学生对象,设置name和age属性值,然后调用一个方法(此方法将对象作为参数传递,在方法中打印出学生的名字name和年龄age)。(学生类仅包含静态成员变量和方法。)-The ori
NumberInputTest
- 个人原创代码:Java异常处理程序。编写Java Application程序,从命令行得到5个整数,放入一整型数组,然后打印输出,要求:如果输入数据不为整数,要捕获Integer.parseInt()产生的异常,显示“请输入整数”,捕获输入参数不足5个的异常(数组越界),显示“请输入至少5个整数”。-Personal original code: Java exception handling procedures.To write java application program from t
PascalsTest
- 个人原创代码:编写Java Application程序,打印杨辉三角的前10层。-Personal original code: write a Java application program, print the top 10 of the Yang Hui triangle layer.
StringTest
- 个人原创代码:编写Java Application程序,完成以下功能: (1)声明一个名为s的String对象,并使它的内容是“My name is Carrol”; (2)打印整个字符串; (3)打印字符串的长度; (4)打印字符串的第一个字符; (5)打印最后一个字符;-Personal original code: write Java Application, complete the following functions: (1) declare a Stri
8Multiplication-table
- 打印九九乘法表java.txt 8 打印九九乘法表java.txt-Print confirmed the multiplication tables Java 8 print confirmed the multiplication tables Java 8 print confirmed the multiplication tables Java 8 print confirmed the multiplication tables Java
DateChooserJButton
- java程序的界面输出,包括多种组件的输出和输入- frame print
FiveChessGame
- 基于GUI的Java五子棋游戏源码,可人机对战,用java swing做的,运行时需要修改图片的路径。 制作思路: 用按钮做棋子,用图片填充每个按钮。 设置棋盘为24*24的,五子棋FiveChessGame类,继承了JFrame,并且添加了时间监听,五子棋的棋子chess,用JButton表示,五子棋棋子chess对应的棋子标识,用于标记棋子的状态。 1表示黑棋,-1表示白棋,默认0表示无棋子,点击棋子时设置棋子的图标setOnChessIcon。 根据判断该位置
xiancheng
- 应用Java中线程的概念写一个Java程序(包括一个测试线程程序类TestThread,一个Thread类的子类PrintThread)。在测试程序中用子类PrintThread创建2个线程,使得其中一个线程运行时打印10次“线程1正在运行”,另一个线程运行时打印5次“线程2正在运行”。-Applications in Java thread concept to write a Java program (including the class TestThread a test multit
Rectangle
- 做一个简单的矩形面积计算器,要求你输入长和宽就可以计算出其面积。- Create a class Rectangle (and store it in a file called Rectangle.java) It should have two instance variables l (the rectangle’s length) and w (the rectangle’s width). It should have one method that cal
src
- java实现小日历。 打印日历的天数。 如果无输入日期,则打印当年当月的-java implementation calendar. Print calendar days. If you enter dates, then print the current month.
Jinzita
- 一个可以打印金字塔的java程序,可以用于初学者参考考,缺点是循环太多-Java program can print a pyramid, can be used for beginners reference test, the drawback is that cycle too
jincheng
- java进程调度,处理机调度算法的实现 1. 设定系统中有五个进程,每一个进程用一个进程控制块表示。 2. 输入每个进程的“优先数”和“要求运行时间”, 3. 为了调度方便,将五个进程按给定的优先数从大到小连成就绪队列。用一单元指出队列首进程,用指针指出队列的连接情况。 4. 处理机调度总是选队首进程运行。采用动态优先数算法,进程每运行一次优先数就减“1”,同时将运行时间减“1”。 5. 若要求运行时间为零,则将其状态置为“结束”,且退出队列。 6. 运行所设计程序,显示
JAVA_Notepad
- Notepad is a program which is an implementation of the most known Notepad application in Java™ language, to show the many advantages in Java like OO concept and using the powerful Java GUI “Graphical User Interface”. Notepad can open, save, s
stuInfo-manage-system
- 基于JAVA的学生学籍管理系统,主要包括学生信息的录入、修改、查询、删除等。本系统主要包括录入功能界面,修改功能界面,查询与打印功能界面,删除功能界面,基本上满足用户在学生学籍管理方面的需求,用户界面友好-JAVA' s Student Management System, including student information input, modify, query, delete, etc.. The system includes input function interfac
MyCom
- java 串口通讯 打印 pos机源码,欢迎各位高手进行指点-java serial communication print pos machine source, Welcome to the master to carry out pointing