用百度搜索一下,就用“JAVA源代碼“做為搜索條件。一般能找到很多網(wǎng)站。

成都創(chuàng)新互聯(lián)公司-云計算及IDC服務(wù)提供商,涵蓋公有云、IDC機房租用、成都服務(wù)器托管、等保安全、私有云建設(shè)等企業(yè)級互聯(lián)網(wǎng)基礎(chǔ)服務(wù),溝通電話:028-86922220
要學(xué)JAVA最好還是找本書看一看。JAVA能做的東西很多,你要決定你的主攻方向然后就去找相應(yīng)的資料。
你要學(xué)哪方面:
JAVA應(yīng)用程序開發(fā),
JAVA網(wǎng)絡(luò)開發(fā):JSP,APPLET。
JAVA手持設(shè)備軟件開發(fā),像手機軟件等。
如果對程序還不是很懂,最好找本JAVA入門級的書看看,然后再決定。
Myeclipse下,F(xiàn)iles-Import,在General下面選擇Existing Projects into Workspace,點擊next,在Select root directory下打開項目文件夾的路徑,F(xiàn)inish。就OK了。然后在Run as-Java Application.
其實素數(shù)的定義就是不能夠被除了1和它自身的整數(shù)整除
而當(dāng)前有關(guān)素數(shù)的算法還在研究中
所以這里給一個最簡單的,當(dāng)然也是最時間要求最多的
即對給定的這個數(shù),從2開始,一直到它的平方根,如果能夠被其中的某個數(shù)整除,則不是素數(shù),否則就是素數(shù)
int last = (int)Math.sqrt(n);
for(int i = 2; i = last; i++){
if(n % i == 0){
return false;
}
}
return true;
摘??? 要
進入21世紀(jì)以來,網(wǎng)絡(luò)的空前發(fā)展給人們的工作和生活帶來了極大的便利,信息化建設(shè)已經(jīng)成為節(jié)約運營成本、提高工作效率的首選。相比之下,國內(nèi)相當(dāng)數(shù)量的中小醫(yī)院的醫(yī)院預(yù)約掛號工作還采用相對保守的手工工作方式,數(shù)據(jù)信息查詢和存儲的成本較高,但效率卻很低下。為了使醫(yī)院預(yù)約掛號管理更高效、更科學(xué),決定開發(fā)醫(yī)院預(yù)約掛號平臺。
本文采用結(jié)構(gòu)化分析的方法,詳細(xì)闡述了一個功能比較強大的醫(yī)院預(yù)約掛號平臺的前后臺開發(fā)、操作流程和涉及的一些關(guān)鍵技術(shù)。首先進行了可行性分析,然后是系統(tǒng)分析,通過實際的業(yè)務(wù)流程調(diào)研,分析業(yè)務(wù)流程和系統(tǒng)的組織結(jié)構(gòu),完成了數(shù)據(jù)流分析和數(shù)據(jù)字典;然后是系統(tǒng)設(shè)計階段主要完成了功能模塊的劃分、闡述了系統(tǒng)設(shè)計的思想、數(shù)據(jù)庫的設(shè)計和系統(tǒng)設(shè)計的工具及技術(shù)。該階段對本系統(tǒng)各個模塊的功能進行了詳細(xì)設(shè)計,形成了本系統(tǒng)的功能模塊圖;數(shù)據(jù)庫設(shè)計時先進行了概念結(jié)構(gòu)設(shè)計,然后進行了邏輯結(jié)構(gòu)設(shè)計,最后完成了數(shù)據(jù)表的設(shè)計。
根據(jù)前幾個階段的分析和設(shè)計,本系統(tǒng)在設(shè)計方面采用B/S模式,同時使用JSP技術(shù)進行基本頁面的設(shè)計與功能實現(xiàn),后臺數(shù)據(jù)庫選用SQL Server 2000數(shù)據(jù)庫。本系統(tǒng)的設(shè)計實施為醫(yī)院預(yù)約掛號系統(tǒng)的運行做基礎(chǔ),為醫(yī)院預(yù)約掛號管理工作提供良好的條件。
關(guān)鍵詞:預(yù)約掛號;結(jié)構(gòu)化分析;平臺
Abstract
In the 21st century, the unprecedented development of the network to the people's work and life has brought great convenience, information technology has become operational cost savings, improve efficiency of choice. In contrast, a considerable number of domestic small and medium hospitals, hospital appointment registration work is relatively conservative with manual work, data query and the high cost of storage, but the efficiency is very low. To make an appointment by registered hospital management more efficient, more science, decided to develop the hospital appointment registration platform.
In this paper, structural analysis, a function described in detail more powerful platform for the hospital before and after the appointment register sets and development, operational processes, and some of the key technologies involved. First, a feasibility analysis, and system analysis, business process through the actual research, analyze business processes and organizational structure of the system to complete the data flow analysis and data dictionary; then completed the system design phase is mainly divided into functional modules, elaborated the idea of the system design, database design and system design tools and techniques. This phase of the system function of each module in detail the design, forming a functional block diagram of the system; database design first tested the concept design, followed by a logic design, and finally completed the data table design.
According to the first few stages of the analysis and design, the system used in the design of B / S mode, JSP technology, the basic page design and implementation of function, use SQL Server 2000 database backend database. Implementation of the system design registration system for the operation of the hospital appointment as a foundation for the hospital management to provide a good appointment registration conditions.
Key Words:Appointment registration; structural analysis; platform
目??? 錄
摘??? 要... I
Abstract II
一、引言... 1
(一)項目開發(fā)的背景... 1
(二)項目開發(fā)的目的... 1
二、可行性分析及總體設(shè)計原則... 2
(一)可行性分析... 2
1.技術(shù)可行性... 2
2.經(jīng)濟可行性... 2
3.社會可行性... 3
(二)總體設(shè)計原則... 3
三、系統(tǒng)分析... 5
(一)業(yè)務(wù)流程分析... 5
(二)數(shù)據(jù)流圖... 6
(三)數(shù)據(jù)字典... 9
四、系統(tǒng)設(shè)計... 13
(一)系統(tǒng)功能設(shè)計... 13
(二)系統(tǒng)數(shù)據(jù)庫設(shè)計... 14
1.概念結(jié)構(gòu)設(shè)計... 14
2.邏輯結(jié)構(gòu)設(shè)計... 18
3.?dāng)?shù)據(jù)庫表設(shè)計... 18
(三)系統(tǒng)開發(fā)工具與開發(fā)模式的選擇... 20
1.系統(tǒng)開發(fā)工具... 20
2.系統(tǒng)設(shè)計模式... 21
五、系統(tǒng)實現(xiàn)... 22
(一)用戶模塊... 22
1.登錄及注冊管理模塊... 22
2.首界面... 23
3.用戶注冊界面... 24
4.公告界面... 25
5.科室預(yù)約界面... 26
6.留言界面... 27
(三)管理員模塊... 28
1.登錄界面... 28
2.科室管理界面... 28
3.添加專家界面... 29
六、性能測試與分析... 30
(一)測試的重要性... 30
(二)測試實例的研究與選擇... 30
(三)測試環(huán)境與測試條件... 31
(四)實例測試... 32
(五)系統(tǒng)評價... 32
(六)測試結(jié)果... 33
參 考 文 獻... 35
致??? 謝... 36
我用了半個小時 幫你寫了一個簡單的驗證用戶名和密碼登陸問題 別辜負(fù)我的好意 下面是代碼!(建好包和類 代碼粘過去就能用)
實體類 包entity
-------------------------------------------------------------
package entity;
/**
* 用戶實體類
* @author new
*
*/
public class Users {
private String name;//用戶名
private String pass;//用戶密碼
/**
* 空的構(gòu)造函數(shù) 用戶實力化 此類對象
*/
public Users(){
}
/**
* 構(gòu)造函數(shù) 接收用戶名和密碼
* @param name
* @param pass
*/
public Users(String name, String pass) {
this.name = name;
this.pass = pass;
}
/**
* 下面set和get方法就不用解釋了吧
* @return
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPass() {
return pass;
}
public void setPass(String pass) {
this.pass = pass;
}
}
數(shù)據(jù)庫類 包dao(我是模擬一下數(shù)據(jù)庫 沒有用到數(shù)據(jù)庫)
--------------------------------------------------------------
package dao;
import java.util.*;
import entity.Users;//導(dǎo)入實體類
/**
* 模擬數(shù)據(jù)庫 用戶DAO
* @author new
*
*/
public class UsersDAO {
private static Users users=new Users();
static
{
users.setName("tom");
users.setPass("jerry");
}
/**
* 根據(jù)姓名查找這個用戶 (模擬一下數(shù)據(jù)庫)
* @param name
* @return
*/
public Users findUserByName(String name)
{
if(name.equals(this.users.getName()))
{
return this.users;
}
return null;
}
}
業(yè)務(wù)類 包service (驗證用戶名和密碼)
------------------------------------------------------------
package service;
import dao.UsersDAO;
import entity.Users;
/**
* 驗證密碼 業(yè)務(wù)類
* @author new
*
*/
public class validatePass {
//實力化DAO對象
private UsersDAO us=new UsersDAO();
/**
* 驗證輸入的密碼是否正確
* @param name
* @param pass
* @return
*/
public Users validate(String name,String pass)
{
Users user=null;
user=us.findUserByName(name);
//如果不為空 說明查到了
if(user!=null)
{
//用查詢出來對象的密碼和傳過來的密碼比較
if(user.getPass().equals(pass))
{
return user;
}
}
return null;
}
}
最后是測試test類 包test
----------------------------------------------------------
package test;
import entity.Users;
import service.validatePass;
/**
* 測試類
* @author new
*
*/
public class test {
/**
* main方法 用于測試
* @param args
*/
public static void main(String[] args)
{
//實例化業(yè)務(wù)類對象
validatePass v=new validatePass();
//用戶名和密碼
String name="tom";
String pass="jerry";
//開始驗證
Users user=v.validate(name, pass);
if(user==null)
{
System.out.println("你輸入的用戶名或密碼錯誤!");
}else
{
System.out.println("你已經(jīng)通過驗證,成功登陸!");
}
}
}
當(dāng)前標(biāo)題:java預(yù)約掛號源代碼 javaweb醫(yī)院預(yù)約掛號系統(tǒng)
當(dāng)前地址:http://chinadenli.net/article8/hipcip.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、網(wǎng)站排名、網(wǎng)站制作、做網(wǎng)站、服務(wù)器托管、網(wǎng)站策劃
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)