0 0

java流程问题3

package net.zwhd.dc;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.sql.*;

import java.text.SimpleDateFormat;
import java.util.Date;

import net.zwhd.dc.txt.Rules;

public class Text2DB {
	public static String fileName;
	public static String name;
	public static boolean isok;
	public static String begintime = "";
	public static String endtime = "";
	int begin = 0;
	int end = 0;	
	public static String message29;
	public static String message35;
	public static String message41;
	public static String me;
	public static String me0 = "信息字段数不正确。" + "\r\n";
	public static String me1 = "银行交易流水号重复。" + "\r\n";
	public static String me2 = "银行代码不可为空。" + "\r\n";
	public static String me5 = "专用账户名称不可为空。" + "\r\n";
	public static String me6 = "开户银行名称不可为空。" + "\r\n";
	public static String me7 = "银行代码字节不是8位。" + "\r\n";
	public static String me8 = "银行交易流水号字节不是32位。" + "\r\n";
	public static String me9 = "专用账户账号字节不是32位。" + "\r\n";
	public static String me10 = "专用账户名称字节不是80位。" + "\r\n";
	public static String me11 = "开户银行名称字节不是80位。" + "\r\n";
	public static String me12 = "出入账编号信息字节不是32位。" + "\r\n";
	public static String me13 = "付款/出款账号字节不是32位。" + "\r\n";
	public static String me14 = "付款/出款银行代码字节不是11位。" + "\r\n";
	public static String me15 = "交易日期交易时间字节不是22位。" + "\r\n";
	public static String me16 = "清算日期字节不是10位。" + "\r\n";
	public static String me17 = "交易金额字节不是15位。" + "\r\n";
	public static String me18 = "入账金额字节不是15位。" + "\r\n";
	public static String me19 = "终端号字节不是32位。" + "\r\n";
	public static String me20 = "收入/支出字节不是1位。" + "\r\n";
	public static String me21 = "付款方式字节不是2位。" + "\r\n";
	public static String me22 = "保留字段字节不是50位。" + "\r\n";
	public static String me23 = "专用账户账号格式不正确。" + "\r\n";
	public static String me24 = "交易日期交易时间格式不正确。" + "\r\n";
	public static String me25 = "清算日期格式不正确。" + "\r\n";
	public static String me26 = "交易金额不是有效数字。" + "\r\n";
	public static String me27 = "入账金额不是有效数字。" + "\r\n";
	public static String me28 = "收入/支出不是有效数字。" + "\r\n";
	public static String me29 = "付款方式不是有效数字。" + "\r\n";
	public static String me30 = "出入账编号信息与收入/支出不匹配。" + "\r\n";
	public static String me31 = "流水号格式不符合规则。" + "\r\n";
	public static String me32 = "余额字节不是22位。" + "\r\n";
	public static String me33 = "余额格式不正确。" + "\r\n";
	public static String me34 = "明细账数据文件长度字节数不是22位。" + "\r\n";
	public static String me35 = "余额数据文件长度字节数不是22位。" + "\r\n";
	public static String me36 = "明细账数据文件长度字节数不可为空。" + "\r\n";
	public static String me37 = "余额数据文件长度字节数不可为空。" + "\r\n";
	public static String m;
	public static String m0;
	public static String m1;
	public static String m2;
	public static String m3;
	public static String m4;
	public static String m5;
	public static String m6;
	public static String m7;
	public static String m8;
	public static String m9;
	public static String m10;
	public static String m11;
	public static String m12;
	public static String m13;
	public static String m14;
	public static String m15;
	public static String m16;
	public static String m17;
	public static String m18;
	public static String m19;
	public static String m20;
	public static String m21;
	public static String m22;
	public static String m23;
	public static String m24;
	public static String m25;
	public static String m26;
	public static String m27;
	public static String m28;
	public static String m29;
	public static String m30;
	public static String m31;			
	public static String m32;			
	public static String m33;			
	public static String m34;			
	public static String m35;			
	public static String m36;			
	public static String m37;			
	public static String m38;			
	public static String m39;			
	public static String m40;			
	public static String m41;			
	public static String m42;					
	Rules rules;

	public Text2DB(String fileName) {
		Text2DB.fileName = fileName;
	}

	public void Txt2DB(String decoding) {
		System.setProperty("sun.jnu.encoding", "UTF-8");
		System.out.println(System.getProperty("sun.jnu.encoding"));
		System.out.println(System.getProperty("file.encoding"));
		Connection conn = null;
		String temp = null;
		try {
			conn = getConnection();
			Statement st = conn.createStatement();
			ResultSet result = st.executeQuery("select begintime,endtime from tab_date");
			if (result.next()) {
				begintime = result.getString("begintime");
				endtime = result.getString("endtime");
			}
			if (!begintime.equals("") && !endtime.equals("")) {
				begin = Integer.parseInt(begintime);
				end = Integer.parseInt(endtime);
			} else {
				return;
			}
			SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
			String time = sdf.format(new Date());
			time = time.replace(":", "");
			System.out.println(begin);
			System.out.println(end);
			if (Integer.parseInt(time) > begin && Integer.parseInt(time) < end) {
				FileInputStream fis = new FileInputStream(fileName);
				InputStreamReader isr = new InputStreamReader(fis, decoding);
				BufferedReader bf = new BufferedReader(isr);
				while ((temp = bf.readLine()) != null) {								
					if (fileName.indexOf("Datas") != -1) {
						StringBuffer sqlLineBuffer = new StringBuffer();
						sqlLineBuffer.append("INSERT INTO lsDatas (yhdm,yhjylsh,zyzhzh,zyzhmc,"
								+ "khyhmc,crzbhxx,fkckzh,fkckyhdm,jyrqjysj,qsrq,jyje,"
								+ "rzje,zdh,srzc,fkfs,blzd) VALUES (");
						String[] ds = temp.split("[|]");
						rules = new Rules();
						message29 = rules.check1(ds);
						if (message29.equals("okokokokokokokokokokokokokokokokokokokokokokokokokokokokokok")) {
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[0]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[1]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[2]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[3]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[4]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[5]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[6]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[7]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[8]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[9]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[10]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[11]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[12]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[13]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[14]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[15]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(")");
							System.out.println(sqlLineBuffer.toString());
							st.execute(sqlLineBuffer.toString());
						} else {
								error(temp);
						}
					} else if (fileName.indexOf("Balance") != -1) {
						StringBuffer sqlLineBuffer = new StringBuffer();
						File f = new File(fileName);
						String f1 = f.getName();
						String f2 = f1.substring(0, f1.indexOf("_"));
						String s11 = fileName;
						char start11 = (char) s11.indexOf("_");
						String date = s11.substring(start11 + 1, start11 + 9);
						sqlLineBuffer.append("INSERT INTO lsBalance (yhdm,zyzhzh,ye,sj) VALUES (");
						String[] ds = temp.split("[|]");
						rules = new Rules();
						message35 = rules.check2(ds);
						if (message35.equals("okokokokok")) {
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(f2);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[0]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[1]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(date);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(")");
							System.out.println(sqlLineBuffer.toString());
							st.execute(sqlLineBuffer.toString());
						} else {
				error(temp);
						}
					} else if (fileName.indexOf("List") != -1) {
						StringBuffer sqlLineBuffer = new StringBuffer();
						File f = new File(fileName);
						String f1 = f.getName();
						String f2 = f1.substring(0, f1.indexOf("_"));
						String s11 = fileName;
						char start11 = (char) s11.indexOf("_");
						String date = s11.substring(start11 + 1, start11 + 9);
						sqlLineBuffer.append("INSERT INTO lsList (yhdm,mxzsjwjcdzjs,yesjwjcdzjs,sj) VALUES (");
						String[] ds = temp.split("[|]");
						rules = new Rules();
						message41 = rules.check3(ds);
						if (message41.equals("okokokokok")) {
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(f2);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[0]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(ds[1]);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(",");
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(date);
							sqlLineBuffer.append("'");
							sqlLineBuffer.append(")");
							System.out.println(sqlLineBuffer.toString());
							st.execute(sqlLineBuffer.toString());
						} else {
												error(temp);
						}
					} else {
						error(temp);
					}
				}
				fis.close();
				isr.close();
				bf.close();
				conn.commit();
				st.close();
				conn.close();
			}else{
				 File file=new File(fileName);
				 file.delete();
			}
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			} catch (SQLException e) {
				e.printStackTrace();
				try {
					conn.rollback();
				} catch (SQLException e1) {
					e1.printStackTrace();
				}
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			} finally {
				try {
					conn.close();
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
	}

	public Connection getConnection() throws ClassNotFoundException,SQLException {
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl", "scott", "tiger");
		conn.setAutoCommit(false);
		return conn;
	}

	public void execSQL() throws SQLException, ClassNotFoundException {
		Statement st = this.getConnection().createStatement();
		ResultSet rs = st.executeQuery("select tname from tab");
		while (rs.next()) {
			System.out.println(rs.getString(1).toString());
		}
	}

	public void error(String temp) throws IOException{
		Connection conn = null;
		try {
			conn = getConnection();
			Statement st = conn.createStatement();
			if(fileName.indexOf("Datas") != -1){
				name = fileName.replace(".", "_e.");
				FileOutputStream out = new FileOutputStream(name, true);
				PrintStream p = new PrintStream(out);
				p.println(temp + "\r\n");
				if(message29.indexOf("nok00") != -1){							
					p.println(me0);
				}else{

				}						
				if(message29.indexOf("nok01") != -1){							
					p.println(me1);
				}else{
					
				}						
				if(message29.indexOf("nok02") != -1){							
					p.println(me2);
				}else{
					
				}																		
				if(message29.indexOf("nok03") != -1){							
					p.println(me5);
				}else{
					
				}												
				if(message29.indexOf("nok04") != -1){							
					p.println(me6);
				}else{
					
				}						
				if(message29.indexOf("nok05") != -1){							
					p.println(me7);
				}else{
					
				}
				if(message29.indexOf("nok06") != -1){							
					p.println(me8);
				}else{
					
				}						
				if(message29.indexOf("nok07") != -1){							
					p.println(me9);
				}else{
					
				}						
				if(message29.indexOf("nok08") != -1){							
					p.println(me10);
				}else{
					
				}						
				if(message29.indexOf("nok09") != -1){							
					p.println(me11);
				}else{
					
				}						
				if(message29.indexOf("nok10") != -1){							
					p.println(me12);
				}else{
					
				}						
				if(message29.indexOf("nok11") != -1){							
					p.println(me13);
				}else{
					
				}						
				if(message29.indexOf("nok12") != -1){							
					p.println(me14);
				}else{
					
				}						
				if(message29.indexOf("nok13") != -1){							
					p.println(me15);
				}else{
					
				}						
				if(message29.indexOf("nok14") != -1){							
					p.println(me16);
				}else{
					
				}						
				if(message29.indexOf("nok15") != -1){							
					p.println(me17);
				}else{
					
				}						
				if(message29.indexOf("nok16") != -1){							
					p.println(me18);
				}else{
					
				}						
				if(message29.indexOf("nok17") != -1){							
					p.println(me19);
				}else{
					
				}						
				if(message29.indexOf("nok18") != -1){							
					p.println(me20);
				}else{
					
				}						
				if(message29.indexOf("nok19") != -1){							
					p.println(me21);
				}else{
					
				}						
				if(message29.indexOf("nok20") != -1){							
					p.println(me22);
				}else{
					
				}						
				if(message29.indexOf("nok21") != -1){							
					p.println(me23);
				}else{
					
				}						
				if(message29.indexOf("nok22") != -1){							
					p.println(me24);
				}else{
					
				}						
				if(message29.indexOf("nok23") != -1){							
					p.println(me25);
				}else{
					
				}						
				if(message29.indexOf("nok24") != -1){							
					p.println(me26);
				}else{
					
				}						
				if(message29.indexOf("nok25") != -1){							
					p.println(me27);
				}else{
					
				}						
				if(message29.indexOf("nok26") != -1){							
					p.println(me28);
				}else{
					
				}						
				if(message29.indexOf("nok27") != -1){							
					p.println(me29);
				}else{
					
				}						
				if(message29.indexOf("nok28") != -1){							
					p.println(me30);
				}else{
					
				}						
				if(message29.indexOf("nok29") != -1){							
					p.println(me31);
				}else{
					
				}						
				out.close();
				if(message29.indexOf("nok00") != -1){	
					m0 = me0;
				}else{
					m0 = "";
				}
				if(message29.indexOf("nok04") != -1){							
					m1 = me1;
				}else{
					m1 = "";
				}
				if(message29.indexOf("nok02") != -1){		
					m2 = me2;
				}else{
					m2 = "";
				}
				if(message29.indexOf("nok03") != -1){	
					m4 = me5;
				}else{
					m4 = "";
				}
				if(message29.indexOf("nok04") != -1){							
					m5 = me6;
				}else{
					m5 = "";
				}
				if(message29.indexOf("nok05") != -1){		
					m6 = me7;
				}else{
					m6 = "";
				}
				if(message29.indexOf("nok06") != -1){	
					m7 = me8;
				}else{
					m7 = "";
				}
				if(message29.indexOf("nok07") != -1){	
					m8 = me9;
				}else{
					m8 = "";
				}
				if(message29.indexOf("nok08") != -1){	
					m9 = me10;
				}else{
					m9 = "";
				}
				if(message29.indexOf("nok09") != -1){							
					m10 = me11;
				}else{
					m10 = "";
				}
				if(message29.indexOf("nok10") != -1){		
					m11 = me12;
				}else{
					m11 = "";
				}
				if(message29.indexOf("nok11") != -1){	
					m12 = me13;
				}else{
					m12 = "";
				}
				if(message29.indexOf("nok12") != -1){	
					m13 = me14;
				}else{
					m13 = "";
				}
				if(message29.indexOf("nok13") != -1){	
					m14 = me15;
				}else{
					m14 = "";
				}
				if(message29.indexOf("nok14") != -1){							
					m15 = me16;
				}else{
					m15 = "";
				}
				if(message29.indexOf("nok15") != -1){		
					m16 = me17;
				}else{
					m16 = "";
				}
				if(message29.indexOf("nok16") != -1){	
					m17 = me18;
				}else{
					m17 = "";
				}
				if(message29.indexOf("nok17") != -1){	
					m18 = me19;
				}else{
					m18 = "";
				}
				if(message29.indexOf("nok18") != -1){	
					m19 = me20;
				}else{
					m19 = "";
				}
				if(message29.indexOf("nok19") != -1){							
					m20 = me21;
				}else{
					m20 = "";
				}
				if(message29.indexOf("nok20") != -1){		
					m21 = me22;
				}else{
					m21 = "";
				}
				if(message29.indexOf("nok21") != -1){	
					m22 = me23;
				}else{
					m22 = "";
				}
				if(message29.indexOf("nok22") != -1){	
					m23 = me24;
				}else{
					m23 = "";
				}
				if(message29.indexOf("nok23") != -1){	
					m24 = me25;
				}else{
					m24 = "";
				}
				if(message29.indexOf("nok24") != -1){							
					m25 = me1;
				}else{
					m25 = "";
				}
				if(message29.indexOf("nok25") != -1){		
					m26 = me27;
				}else{
					m26 = "";
				}
				if(message29.indexOf("nok26") != -1){	
					m27 = me28;
				}else{
					m27 = "";
				}
				if(message29.indexOf("nok27") != -1){	
					m28 = me29;
				}else{
					m28 = "";
				}
				if(message29.indexOf("nok28") != -1){	
					m29 = me30;
				}else{
					m29 = "";
				}
				if(message29.indexOf("nok29") != -1){	
					m30 = me31;
				}else{
					m30 = "";
				}
				m = m0 + m1 + m2 + m4 + m5 + m6 + m7 + m8 + m9 + m10 + m11
						+ m12 + m13 + m14 + m15 + m16 + m17 + m18 + m19 + m20
						+ m21 + m22 + m23 + m24 + m25 + m26 + m27 + m28 + m29
						+ m30;
				String sql ="insert into error(wjm,nrxx,cwxx) values('"+fileName+"','"+temp+"','"+m+"')";
				st.executeUpdate(sql);
			}else if(fileName.indexOf("Balance") != -1){
				name = fileName.replace(".", "_e.");
				FileOutputStream out = new FileOutputStream(name, true);
				PrintStream p = new PrintStream(out);
				p.println(temp + "\r\n");
				if(message35.indexOf("nok30") != -1){							
					p.println(me0);
				}else{
					
				}
				if(message35.indexOf("nok31") != -1){							
					p.println(me9);
				}else{
					
				}
				if(message35.indexOf("nok32") != -1){							
					p.println(me32);
				}else{
					
				}
				if(message35.indexOf("nok33") != -1){							
					p.println(me33);
				}else{
					
				}
				if(message35.indexOf("nok34") != -1){							
					p.println(me23);
				}else{
					
				}
				out.close();
				if(message35.indexOf("nok30") != -1){							
					m31 = me0;
				}else{
					m31 = "";
				}
				if(message35.indexOf("nok31") != -1){		
					m32 = me9;
				}else{
					m32 = "";
				}
				if(message35.indexOf("nok32") != -1){	
					m33 = me32;
				}else{
					m33 = "";
				}
				if(message35.indexOf("nok33") != -1){	
					m34 = me33;
				}else{
					m34 = "";
				}
				if(message35.indexOf("nok34") != -1){	
					m35 = me23;
				}else{
					m35 = "";
				}
				m36 = m31+m32+m33+m34+m35;		
				String sql ="insert into error(wjm,nrxx,cwxx) values('"+fileName+"','"+temp+"','"+m36+"')";
				st.executeUpdate(sql);	
			}else if(fileName.indexOf("List") != -1){
				name = fileName.replace(".", "_e.");
				FileOutputStream out = new FileOutputStream(name, true);
				PrintStream p = new PrintStream(out);
				p.println(temp + "\r\n");
				if(message41.indexOf("nok35") != -1){							
					p.println(me0);
				}else{
					
				}
				if(message41.indexOf("nok36") != -1){							
					p.println(me34);
				}else{
					
				}
				if(message41.indexOf("nok37") != -1){							
					p.println(me35);
				}else{
					
				}
				if(message41.indexOf("nok38") != -1){							
					p.println(me36);
				}else{
					
				}
				if(message41.indexOf("nok39") != -1){							
					p.println(me37);
				}else{
					
				}
				out.close();
				if(message41.indexOf("nok35") != -1){							
					m37 = me0;
				}else{
					m37 = "";
				}
				if(message41.indexOf("nok36") != -1){		
					m38 = me34;
				}else{
					m38 = "";
				}
				if(message41.indexOf("nok37") != -1){	
					m39 = me35;
				}else{
					m39 = "";
				}
				if(message41.indexOf("nok38") != -1){	
					m40 = me36;
				}else{
					m40 = "";
				}
				if(message41.indexOf("nok39") != -1){	
					m41 = me37;
				}else{
					m41 = "";
				}
				m42 = m37+m38+m39+m40+m41;
				String sql ="insert into error(wjm,nrxx,cwxx) values('"+fileName+"','"+temp+"','"+m42+"')";
				st.executeUpdate(sql);	
			}else{				
				name = fileName.replace(".", "_NameError.");
				FileOutputStream out = new FileOutputStream(name, true);
				PrintStream p = new PrintStream(out);
				p.println("文件名错误。");
				out.close();
				String sqlString = "insert into error(wjm,nrxx,cwxx) values('"
					+ fileName + "','內容未读取。','文件名错误。')";
				st.executeUpdate(sqlString);
			}
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String args[]) {
		try {
				new Text2DB(fileName).execSQL();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}


现在流程有问题该怎么改?
造成结果比如NameError读取三遍等等。

问题补充:改哪里?   新手没改过。
2012年1月12日 14:40

2个答案 按时间排序 按投票排序

0 0

先重构代码再来提问,可能你重构的过程中就找到问题所在了

2012年1月18日 16:04
0 0

代码需要重构了

2012年1月12日 15:28

相关推荐

    Java开发流程(流程图)

    Java开发流程 Java开发流程 Java开发流程 Java开发流程 Java开发流程

    java制作的流程引擎

    为了实现这些功能,Java流程引擎通常会依赖一些关键的Java库和技术,如Spring框架(用于依赖注入和事务管理)、Hibernate(用于数据库操作)和JPA(Java Persistence API)等。此外,可能还会使用XML或JSON格式来...

    实例2 java流程控制

    实例2 java流程控制 源码代码 java流程控制

    Java流程图 作业

    在这个"Java流程图 作业"中,我们有三个不同的流程图,分别对应于三个不同的Java编程问题:最小公倍数的计算、A+B问题以及统计相同成绩人数的逻辑。以下是对这三个问题的详细说明: 1. **最小公倍数(LCM)**: - ...

    java流程自动化工具

    二、环境搭建:以java应用来讲,比如安装jdk,tomcat,zookeeper,mq,hbase,mysql等等都可以实现自动化。 三、应用部署:GIT代码拉取,MAVEN打包,SFTP上传,Linux脚本执行,自动化一气呵成,且轻松实现切换用户等...

    基于java的开发源码-中式Java流程引擎UFLO.zip

    基于java的开发源码-中式Java流程引擎UFLO.zip 基于java的开发源码-中式Java流程引擎UFLO.zip 基于java的开发源码-中式Java流程引擎UFLO.zip 基于java的开发源码-中式Java流程引擎UFLO.zip 基于java的开发源码-中式...

    java开发流程

    ### Java项目开发流程详解 #### 一、Java项目开发流程概览 在现代软件开发领域,Java作为一种广泛应用的编程语言,其项目开发流程对于确保软件质量、提高开发效率至关重要。本文将详细介绍Java项目的开发流程,从...

    java实现工作流程

    Java是一种广泛应用于企业级开发的编程语言,尤其在构建复杂工作流程系统方面表现卓越。本文将深入探讨Java如何实现工作流程,并围绕“JSP”、“MVC”、“Servlet”和“HTTP”这些关键标签展开讨论。 首先,让我们...

    java流程控制练习题.pdf

    根据提供的文件信息,本文将对Java流程控制练习题进行详细的知识点分析。在Java中,流程控制是实现程序逻辑的核心,包括条件语句和循环语句等。以下是对应的练习题知识点: 1. **基本输入输出**:练习题1要求从键盘...

    Java流程控制.md

    Java流程控制,包含Scanner调用方法和简单,顺序结构,基础循环,还有简单debug方法(没有详细介绍debug,文档里有链接,其他大大有总结好的)

    java源码:业务流程管理(BPM)和工作流系统 Activiti.zip

    Java源码:业务流程管理(BPM)与工作流系统Activiti是企业级软件开发中的重要组成部分,尤其在实现高效、灵活的业务自动化方面扮演着关键角色。Activiti是一款开源的工作流引擎,它基于模型驱动的架构(MDA),旨在...

    java流程控制.ppt

    java,for循环,switch语句等

    java开发流程 java 开发过程步骤

    Java开发流程详解 Java开发流程是软件开发的过程,包括需求分析、设计、实现、测试和维护等阶段。下面是Java开发流程的详细解释: 需求分析 需求分析是软件开发的第一阶段,也是最重要的一步。在这个阶段,开发...

    java流程控制语句练习答案

    在"java流程控制语句练习答案"的课程中,学员将会通过实践来深入理解这些概念,并通过解答课后习题巩固知识。讲解代码会详细解释每个练习的解决方案,帮助学员理解如何在实际问题中应用流程控制语句。这有助于提高...

    java项目文档编写模板—包含项目全流程文档模板(全)

    java项目文档编写模板—包含项目全流程文档模板(全)java项目文档编写模板—包含项目全流程文档模板(全)java项目文档编写模板—包含项目全流程文档模板(全)java项目文档编写模板—包含项目全流程文档模板(全)java项目...

    基于注解的轻量级java流程跟踪工具源码.zip

    基于注解的轻量级java流程跟踪工具源码.zip基于注解的轻量级java流程跟踪工具源码.zip基于注解的轻量级java流程跟踪工具源码.zip基于注解的轻量级java流程跟踪工具源码.zip基于注解的轻量级java流程跟踪工具源码.zip...

    java学习流程

    java开发学习流程,只为程序员的你! 第一阶段:Java基础篇 第二阶段:网页基础篇 第三阶段:Jsp&Servlet;动态网页技术篇 第四阶段:富客户端技术篇 ……

    流程控制用Java

    Java作为一门广泛应用的编程语言,提供了丰富的流程控制结构,使得开发者能够有效地组织和控制程序的执行流程。本篇将深入探讨Java中的流程控制技术,包括顺序结构、选择结构和循环结构。 1. **顺序结构**:这是最...

    java流程分析免费(SOPA)_1.1.1

    基于源码流程分析(SOPA)Sources Oriented Process Analysis SOPA是一款分析java流程的eclipse插件,其主要用途如下: 1.快速领会方法调用过程, 2.快速画交易流程图, 3.使工程维护更加简单, 4.团队协作更加简单, 5....

    Java学习流程

    对想学习Java的同学分享下我以前的学习Java流程

Global site tag (gtag.js) - Google Analytics