随笔分类 -  开发技能

摘要:Practice: Although Euclid’s algorithm and the problem of finding perfect numbers from the preceding exercise are both drawn from the domain of mathematics, the Greeks were fascinated with algorithms of other kinds as well. In Greek mythology, for example, Theseus of Athens escapes from the Minotaur’ 阅读全文
posted @ 2011-04-08 17:01 职场人的思考 阅读(314) 评论(0) 推荐(0) 编辑
摘要:Practice : The values of the combinations method used in the text are often displayed in the form of a triangle using the following arrangement:C(0,0)C(1,0) C(1,1)C(2,0) C(2,1) C(2,2)C(3,0) C(3,1) C(3,2) C(3,3)C(4,0) C(4,1) C(4,2) C(4,3) C(4,4)and so on. This figure is called Pascal’s Triangle after 阅读全文
posted @ 2011-04-08 11:31 职场人的思考 阅读(253) 评论(0) 推荐(0) 编辑
摘要:Calling methods from within other methods------------------------程序如下:-----------------------------/** File: Combinations.java* -----------------------* This program computes the mathematical combinations function* C(n, k), which is the number of ways of selecting k objects* from a set of n distinct 阅读全文
posted @ 2011-04-02 15:46 职场人的思考 阅读(1234) 评论(1) 推荐(0) 编辑
摘要:package chapter5;import java.util.Scanner;public class Gcd {/** * 计算2个数的最大公约数 */public static void main(String[] args) { int x; int y; int result; System.out.println("please in put the x:"); Scanner input=new Scanner(System.in); x=input.nextInt(); System.out.println("please in put the 阅读全文
posted @ 2011-04-02 15:33 职场人的思考 阅读(801) 评论(0) 推荐(0) 编辑
摘要:Write a program named "ReverseDigits ", it generates the number that has the same digits in the reverse order, as illustrated by this sample run:---------------------------------ReverseDigits 类---------------------------------package chapter4;import java.util.InputMismatchException;import 阅读全文
posted @ 2011-03-29 18:15 职场人的思考 阅读(659) 评论(1) 推荐(1) 编辑
摘要:需要安装好的软件:1. MYSQL2. Navicate Lite (Mysql 连接图像界面工具)3. Myeclipse4. Apache tomcat5. jdk6. jdbc jar 包: mysql-connector-java-5.0.8-bin.jar7. 数据库文件: test.sql 8. war包: ssh2.war---------------------------------------------------------------------------------------------步骤如下:1. 打开Navicat Lite 软件,连接mysql 数据库, 阅读全文
posted @ 2010-12-10 18:51 职场人的思考 阅读(466) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示