这是用Java编写的一个简单的银行转账系统,包括取款,存款,转账等功能,其中用到了数据库的连接,采用Eclipse编写,包含数据库的设计文件。
非常适合有一定基础的Java初学者使用。
packagecom.gujunjia.bank;/**Tochangethistemplate,chooseTools|Templates*andopenthetemplateintheeditor.*/importjava.sql.*;/****@authorgujunjia*/publicclassDataBase{ staticConnectionconn; staticPreparedStatementst; staticResultSetrs; /** *加载驱动 */ publicstaticvoidloadDriver() { try { Class.forName("com.mysql.jdbc.Driver"); } catch(ClassNotFoundExceptione) { System.out.println("加载驱动失败"); } } /** *创建数据库的连接 * *@paramdatabase *需要访问的数据库的名字 */ publicstaticvoidconnectionDatabase(Stringdatabase) { try { Stringurl="jdbc:mysql://localhost:3306/"+database; Stringusername="root"; Stringpassword="gujunjia"; conn=DriverManager.getConnection(url,username,password); } catch(SQLExceptione) { System.out.println(e.getMessage()); } } /** *关闭数据库连接 */ publicstaticvoidcloseConnection() { if(rs!=null) {//关闭记录集 try { rs.close(); } catch(SQLExceptione) { e.printStackTrace(); } } if(st!=null) {//关闭声明 try { st.close(); } catch(SQLExceptione) { e.printStackTrace(); } } if(conn!=null) {//关闭连接对象 try { conn.close(); } catch(SQLExceptione) { e.printStackTrace(); } } }}packagecom.gujunjia.bank;/**Tochangethistemplate,chooseTools|Templates*andopenthetemplateintheeditor.*/importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;/***本类次要实现整个系统的界面**@authorgujunjia*/publicclassMainFrameextendsJFrameimplementsActionListener,FocusListener{ /** * */ privatestaticfinallongserialVersionUID=1L; publicstaticStringuserId; JTextFielduserIdText; JPasswordFieldpasswordText; JButtonregisterButton; JButtonlogInButton; publicMainFrame() { super("个人银行系统
2020/11/9 14:44:46 132KB Java 银行转账
1
Routing-Middleware-Controllers-Requests-Responses-Views-BladeTemplates
2016/5/20 23:08:10 148.58MB Laravel Response Views Blade
1
由于项目需要的原因,需要将代码进行规范化。
开始的时候在网上找了很多的资料,但是比较零碎。
发现阿里有自己的代码规范检测的插件,安装了之后,知道了一些标准,之后就根据这些标准制作了codetempates.xml。
测试后,可以通过阿里的代码规范的测试。
希望能协助大家
1
AngularJSiswhatHTMLwouldhavebeen,haditbeendesignedforbuildingweb-apps.Declarativetemplateswithdata-binding,MVC,dependencyinjection.
2017/6/9 1:33:58 47KB Angular20210118b
1
ThereisanexplosionofinterestinBayesianstatistics,primarilybecauserecentlycreatedcomputationalmethodshavefinallymadeBayesiananalysistractableandaccessibletoawideaudience.DoingBayesianDataAnalysis,ATutorialIntroductionwithRandBUGS,isforfirstyeargraduatestudentsoradvancedundergraduatesandprovidesanaccessibleapproach,asallmathematicsisexplainedintuitivelyandwithconcreteexamples.Itassumesonlyalgebraand‘rusty’calculus.Unlikeothertextbooks,thisbookbeginswiththebasics,includingessentialconceptsofprobabilityandrandomsampling.Thebookgraduallyclimbsallthewaytoadvancedhierarchicalmodelingmethodsforrealisticdata.ThetextprovidescompleteexampleswiththeRprogramminglanguageandBUGSsoftware(bothfreeware),andbeginswithbasicprogrammingexamples,workingupgraduallytocompleteprogramsforcomplexanalysesandpresentationgraphics.Thesetemplatescanbeeasilyadaptedforalargevarietyofstudentsandtheirownresearchneeds.ThetextbookbridgesthestudentsfromtheirundergraduatetrainingintomodernBayesianmethods.Accessible,includingthebasicsofessentialconceptsofprobabilityandrandomsamplingExampleswithRprogramminglanguageandBUGSsoftwareComprehensivecoverageofallscenariosaddressedbynon-bayesiantextbooks-t-tests,analysisofvariance(ANOVA)andcomparisonsinANOVA,multipleregression,andchi-square(contingencytableanalysis).CoverageofexperimentplanningRandBUGScomputerprogrammingcodeonwebsiteExerciseshaveexplicitpurposesandguidelinesforaccomplishment作者从概率统计和编程两方面入手,由浅入深地指点读者如何对实际数据进行贝叶斯分析。
全书分成三部分,第一部分为基础篇:关于参数、概率、贝叶斯法则及R软件,第二部分为二元比例推断的基本理论,第三部分为广义线性模型。
内容包括贝叶斯统计的基本理论、实验设计的有关知识、以层次模型和MCMC为代表的复杂方法等。
同时覆盖所有需要用到非贝叶斯方法的情况,其中包括:t检验,方差分析(ANOVA)和ANOVA中的多重比较法,多元线性回归,Logistic回归,序列回归和卡方(列联表)分析。
针对不同的学习目标(如R、BUGS等)列出了相应的重点章节;
整理出贝叶斯统计中某些与传统统计学可作类比的内容,方便读者快速学习。
本中提出的方法都是可操作的,并且所有涉及数学理论的地方都已经用实际例子非常直观地进行了解释。
由于并不对读者的统计或
2018/9/5 21:06:32 9.93MB 贝叶斯 Bayesian Data Analysis
1
默认的管理密码是passwordPhpQuestionnaire是一个非常优秀的基于PHP+MYSQL的问卷调查系统,安装文件phpQ/install.php我已经翻译好了95%以上的英文语言包,也许有些地方翻译的不是很正确,请大家到时候修正一下。
2005.12.17gdteam.org5info英文引见:phpQuestionnaireversion2.2Readme-----------------------------------ThefollowingaresomenotesontheuseofphpQuestionnaire:1.WehighlyrecommendreadingthedocumentationthatisdistributedwiththispackageinthephpQ/docs/directory.Youmayalsoreachtheuserdocumentationat:http://www.chumpsoft.com/index.php?page=phpqdocs2.Ifyouwanttolinktoalistofpubliclyavailablesurveysonyourprogram,thatcanbefoundviathephpQ/index.phpfileinthisdistribution.3.TheadministrationinterfacecanbereachedbypointingyourwebbrowsertothephpQ/admin/index.phpfileinthisdistribution.4.Ifyouhaveanyquestions,pleaseaddressthemtosupport@chumpsoft.com.安装说明:phpQuestionnaireversion2.2InstallationInstructions------------------------------------------------------ItisrecommendedthatyouviewthedocumentationforphpQ,whichcanbefoundinthedocs/directoryofthispackage.Thefileisindex.html.Youmayalsoviewthedocumentationat:http://www.chumpsoft.com/index.php?page=phpqdocsToperformanautomaticinstallationofthispackage,pleasefollowthesesteps:1.Whenunpackingthefiles,theywillallbeplacedinappropriatelocationswithinabasedirectoryof'phpQ/'.MoveorUploadthisdirectoryontoyourwebserverintoalocationaccessiblefromyourbrowser.NOTEONUPGRADING:IfyouareupgradingfromapreviousversionofphpQuestionnaire,werecommendbackingupyourcurrentversionincaseyouhaveanyproblems.Becarefulifyouhavemadechangestoyourcurrentversion.Forinstance,donoteraseanytemplatesyoumayhavecreatedormodifiedandifyouhavechangedanyotherfilesinphpQ,yourmodificationsmaybelostifyouhavenotproperlybackedthemuptoanotherdirectory.Ifyouencounteranyproblemswiththeautomaticupgrader(itcanupdateanypriorversion)pleaseletusknow.Furthermore,ifyouareupgradingfromaversionPRIORto2.0,therehavebeennumerouschangesinincludingsomethatcanaffectthewayasurveyappearstotheuser.Westronglyrecommendsettingupv2.2inaparalleldirectory,upgradi
2022/9/8 23:27:54 196KB PHP源码 投票调查
1
《C++TEMPLATES中文版》最新的2013出版清晰完好书签目录
2019/5/11 14:54:13 73.27MB C++
1
(含源码及报告)本程序分析了自2016年到2021年(外加)每年我国原油加工的产量,并且分析了2020年全国各地区原油加工量等,含饼状图,柱状图,折线图,数据在地图上显示。
运转本程序需要requests、bs4、csv、pandas、matplotlib、pyecharts库的支持,如果缺少某库请自行安装后再运转。
文件含6个excel表,若干个csv文件以及一个名字为render的html文件(需要用浏览器打开),直观的数据处理部分是图片以及html文件,可在地图中显示,数据处理的是excel文件。
不懂可以扫文件中二维码在QQ里面问。
2022/9/30 16:31:44 29.75MB 爬虫 python 源码软件 开发语言
1
-Project/STM32F0xx_StdPeriph_Templates/stm32f0xx_conf.hLibraryConfigurationfile-Project/STM32F0xx_StdPeriph_Templates/stm32f0xx_it.cInterrupthandlers-Project/STM32F0xx_StdPeriph_Templates/stm32f0xx_it.hInterrupthandlersheaderfile-Project/STM32F0xx_StdPeriph_Templates/main.cMainprogram-Project/STM32F0xx_StdPeriph_Templates/main.hHeaderformain.cmodule-Project/STM32F0xx_StdPeriph_Templates/system_stm32f0xx.cSTM32F0xx
2015/7/8 14:38:41 12.92MB 源码软件
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡