Skip to content

Instantly share code, notes, and snippets.

@peiyush13
Created October 23, 2016 21:17
Show Gist options
  • Save peiyush13/f95082af823b8b1b541324cac8b38cbf to your computer and use it in GitHub Desktop.
Save peiyush13/f95082af823b8b1b541324cac8b38cbf to your computer and use it in GitHub Desktop.
its a simple banking system cmd application
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ClientPropertiesManager">
<properties class="javax.swing.AbstractButton">
<property name="hideActionText" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JComponent">
<property name="html.disable" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JEditorPane">
<property name="JEditorPane.w3cLengthUnits" class="java.lang.Boolean" />
<property name="JEditorPane.honorDisplayProperties" class="java.lang.Boolean" />
<property name="charset" class="java.lang.String" />
</properties>
<properties class="javax.swing.JList">
<property name="List.isFileList" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JPasswordField">
<property name="JPasswordField.cutCopyAllowed" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JSlider">
<property name="Slider.paintThumbArrowShape" class="java.lang.Boolean" />
<property name="JSlider.isFilled" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JTable">
<property name="Table.isFileList" class="java.lang.Boolean" />
<property name="JTable.autoStartsEdit" class="java.lang.Boolean" />
<property name="terminateEditOnFocusLost" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JToolBar">
<property name="JToolBar.isRollover" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JTree">
<property name="JTree.lineStyle" class="java.lang.String" />
</properties>
<properties class="javax.swing.text.JTextComponent">
<property name="caretAspectRatio" class="java.lang.Double" />
<property name="caretWidth" class="java.lang.Integer" />
</properties>
</component>
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="mavenHome" value="Bundled (Maven 3)" />
</MavenGeneralSettings>
</option>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/banking_system.iml" filepath="$PROJECT_DIR$/banking_system.iml" />
</modules>
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
import java.util.ArrayList;
/**
* Created by peiyush on 10/24/2016.
*/
public class Account {
private String AccountID;
private String Branch;
private float Balance;
private Customer AccountHolder[];
public void setAccountID(String accountID)
{
this.AccountID=accountID;
}
public void setBranch(String branch)
{
this.Branch=branch;
}
public void setBalance(float balance)
{
this.Balance=balance;
}
public String getAccountID()
{
return AccountID;
}
public String getBranch()
{
return Branch;
}
public float getBalance()
{
return Balance;
}
}
/**
* Created by peiyush on 10/24/2016.
*/
public class Bank {
private String BankName;
private String Branch;
private String Contact_no;
public Bank(String bankName, String contact_no, String branch) {
Contact_no = contact_no;
BankName = bankName;
Branch = branch;
}
public void setBankName(String bankName)
{
this.BankName=bankName;
}
public void setBranch(String branch)
{
this.Branch=branch;
}
public void setContact_no(String contact_no)
{
this.Contact_no=contact_no;
}
public String getContact_no()
{
return Contact_no;
}
public String getBankName()
{
return BankName;
}
public String getBranch()
{
return Branch;
}
}
import java.util.ArrayList;
/**
* Created by peiyush on 10/24/2016.
*/
public class Customer {
private String CustomerName;
private String CustomerID;
private String Contact_no;
private String Address;
private String EmailID;
public Customer(String customerName, String customerID, String contact_no, String address, String emailID) {
CustomerName = customerName;
CustomerID = customerID;
Contact_no = contact_no;
Address = address;
EmailID = emailID;
}
public void setCustomerName(String customerName)
{
this.CustomerName=customerName;
}
public void setCustomerID(String customerID)
{
this.CustomerID=customerID;
}
public void setContact_no(String contact_no)
{
this.Contact_no=contact_no;
}
public void setAddress(String address)
{
this.Address=address;
}
public void setEmailID(String emailID)
{
this.EmailID=emailID;
}
public String getEmailID()
{
return EmailID;
}
public String getAddress()
{
return Address;
}
public String getContact_no()
{
return Contact_no;
}
public String getCustomerName()
{
return CustomerName;
}
public String getCustomerID()
{
return CustomerID;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment