这是用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
PyCharmisaddictive,withpowerfulandconfigurablecodecompletion,superbeditingtools,top-notchsupport,diverseplugins,andavibrantecosystemtoboot.LearninghowPyCharmworksandmaximisingthesynergyofitspowerfultoolswillhelpyoutorapidlydevelopapplications.FromleveragingthepoweroftheeditortounderstandingPyCharm’sinternals,thisbookwillgiveyouacomprehensiveviewofPyCharmandallowyoutomakeyourownchoicesaboutwhichworkflowandtoolsarebestforyou.YouwillstartbygettingcomfortablewithPyCharmandmakingitlookexactlylikeyouwant.Youcancustomizethetoolsandtaskbarstosuitindividualdevelopers’codingstyles.Youalsolearnhowtoassignkeyboardshortcuts.Youwillmasterdebuggingbyinsertingbreakpoints,collectingruntimedata,anddebuggingfromtheconsole.YouwillunderstandhowPyCharmworksunderneathandhowpluginssuchasCodemap,Vim,Bitbucket,Assetscompressor,markdown,bashfile,shortcuttranslator,and.gitignoreleveragethepoweroftheIntelliJplatform.YouwillbecomecomfortableusingtheVCSinterfaceinPyCharmandseethebenefitsofusingitforsomesimpletasksaswellassomemorecomplextaskssuchaspartialco妹妹itsusingchangelists.Youwilltakeanin-depthlookatthevarioustoolsinPyCharm,improvingyourworkflowdrastically.Finally,youwilldeploypowerfulPyCharmtoolsforDjango,Flask,GAE,andPyramidDevelopment,becomingwellacquaintedwithPyCharm’stoolsetforwebdevelopmentwithpopularplatforms.Packedwithinsidertricks,thisbookwillhelpyouboostproductivitywithPyCharm.WhatYouWillLearnUnderstandtheinternalworkingsoftheIntelliJPlatformLeveragePyCharm’spowerfulsearchtools,andlearnwhichonesarethebestforyouandyourworkflowCustomizePyCharm’senhancedPythoninterpreteranditsinbuiltterminalDevelopwebapplicationsquicklyandeasilywithdifferentframeworkssuchasFlaskandDjangoUnderstand
2016/9/27 10:19:52 6.03MB Mastering PyCharm
1
在java中使用json需要引入以下六个jar包,分别为:commons-lang-2.4.jarcommons-collections-3.2.1.jarcommons-beanutils-1.8.3.jarjson-lib-2.4-jdk15.jarezmorph-1.0.6.jarcommons-logging-1.1.3.jar如果缺少上面任何一个包,会有如下错误:commons-beanutils-1.8.0.jar不加这个包java.lang.NoClassDefFoundError:org/apache/commons/beanutils/DynaBeancommons-collections.jar不加这个包java.lang.NoClassDefFoundError:org/apache/commons/collections/map/ListOrderedMapcommons-lang-2.4.jar不加这个包java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeExceptioncommons-logging-1.1.1.jar不加这个包java.lang.NoClassDefFoundError:org/apache/commons/logging/LogFactoryezmorph-1.0.4.jar不加这个包java.lang.NoClassDefFoundError:net/sf/ezmorph/Morpherjson-lib-2.3-jdk15.jar不加这个包java.lang.NoClassDefFoundError:net/sf/json/JSONObject需要次要的是commons-lang-2.4.jar不能由commons-lang3-3.1.jar替换,两者目录有所区别。
以上,仅做学习记录整理。
2019/11/25 8:44:14 1.37MB json java 必备
1
ROAMSimplisticImplementationByBryanTurnerbrturn@bellsouth.netJanuary,2000ProjectfileforMSVisualC++6.0.RequiresGLUTDLL(www.opengl.org)AdjustprogramconstantsinLandscape.handUtility.cpp.MAPS:DefaultmapisreadfromHeghtXXX.rawwhereXXXistheMAP_SIZE(asdefinedinLandscape.h).Ifthismapisnotfound,theprogramattemptstoopen"Map.ved",aTreadMarksmapfile.TreadMarksmapswillonlyworkforMAP_SIZE==1024.Also,theMULT_SCALEtoviewTreadMarksmapscorrectlyis"0.25f".(www.TreadMarks.com)CONTROLS:MOUSE-HoldLeftMouseButtontoRotateViewAngleQ-ChangeRenderingMode(Wireframe,Lit,Fill,Texture)O-ChangeViewMode(Observe,Follow,Drive,Fly)W/S-Moveforward/backA/D-Rotateleft/right(inObserveModeonly)F-StopAnimationR-ToggleFrustumDrawing0/9-More/LessTrianglesperframe1/2-AdjustFOV
1
实现的功能需求如下:(使用Qtcreator编写)1.设计登录注册界面,有账号密码输入框,有登录注册输入框。
2.点击注册时弹出注册窗口,注册完成后点击确定,信息回显到登录界面的账号密码输入框内。
3.设计数据库,注册时信息录入数据库中,登录时从数据库中遍历信息,有则登录进入主界面,无则提示登录失败。
4.设计登陆后进入的主界面,主界面内,左上方会有文字提示“欢迎你!+用户名”的字样。
主界面的正地方为一个ListWidget框,可以在里面右键添加成员、删除成员或修改成员。
2018/8/18 15:42:25 26KB Qt、登录注册
1
textshape是一整套小的文本重塑和重组功能。
这些功能中的许多功能都来自软件包中的工具。
这使整形工具集于一身,该程序包的特定功能仅限于文本整形。
其他R软件包提供了一些相同的功能。
textshape与这些软件包的不同之处在于,textshape旨在帮助用户获取非结构化数据(或隐式结构化),将其提取为结构化格式,然后重新构建为常见的文本分析格式,以用于文本分析管道的下一阶段。
研究人员通常可以检测/表达看似非结构化数据的隐式结构。
textshape提供了一些工具(例如split_match),以使研究人员可以将这些隐性知识转换为可用于将数据重新格式化为结构化格式的方式。
该程序包旨在与提供清理和文本规范化功能的程序包一起使用。
此外,包旨在将各种通用文本数据源导入R以进行重塑和清理。
目录功能大多数功能会分割,扩展,抓取或整理vector,list,data.
2016/4/20 7:21:37 716KB R
1
%调用格式:%%[pathstruct,pathstr]=listfiles('.\','.csv')%%[pathstruct,pathstr]=listfiles('d:\myfiles','.bmp')
2021/7/27 16:52:01 3KB matlab 查找文件
1
最新华为使能对象ont使能v300R17C00SPC218
2020/7/7 10:25:23 3.62MB 华为光猫 8120C 8245C 8545
1
用于PDE的PETScPETSc作为非线性PDE的求解器“PETSc是一套数据结构和例程,用于通过偏微分方程建模的科学应用程序的可扩展(并行)处理方案”[请参见::]编译中假设您已使用指定的gcc和g++编译器正确安装了PETSc。
转到CMakeLists.txt并为gcc和g++编译器更改第9行和第17行。
转到FindPETSc.cmake,并将行26/27更改为PETSC_DIR和PETSC_ARCH。
在根目录下,输入cmake.然后,输入make或make-j运行输入文件PETSc选项样式用于输入文件,例如-option_nameoption_value。
参见例如input/HeatCond1D.i键入./PETScSolver<input_file_name>来运行输入文件。
例如,。
./PETScSolver
2021/8/23 7:11:43 40KB CMake
1
TheCAS-PEALfacedatabasehasbeenconstructedunderthesponsorsofNationalHi-TechProgramandISVISIONbytheFaceRecognitionGroupofJDL,ICT,CAS.ThegoalstocreatethePEALfacedatabaseinclude:providingtheworldwideresearchersofFRcommunityalarge-scaleChinesefacedatabasefortrainingandevaluatingtheiralgorithms;facilitatingthedevelopmentofFRbyprovidinglarge-scalefaceimageswithdifferentsourcesofvariations,especiallyPose,Expression,Accessories,andLighting(PEAL);advancingthestate-of-the-artfacerecognitiontechnologiesaimingatpracticalapplicationsespeciallyfortheoriental.Currently,theCAS-PEALfacedatabasecontains99,594imagesof1040individuals(595malesand445females)withvaryingPose,Expression,Accessory,andLighting(PEAL).Foreachsubject,9camerasspacedequallyinahorizontalsemicircularshelfaresetuptosimultaneouslycaptureimagesacrossdifferentposesinoneshot.Eachsubjectisalsoaskedtolookupanddowntocapture18imagesinanothertwoshots.Wealsoconsidered5kindsofexpressions,6kindsaccessories(3glasses,and3caps),and15lightingdirections.Thisfacedatabaseisnowpartlymadeavailable(asubsetnamedbyCAS-PEAL-R1,contain30,900imagesof1040subjects)forresearchpurposeonlyonacase-by-casebasisonly.JDLisservingasthetechnicalagentfordistributionofthedatabaseandreservesthecopyrightofalltheimagesinthedatabase.
2021/7/13 14:10:25 37B 中国人脸 数据集  dataset deeplearning
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡