diff --git a/BankingSystem.java b/BankingSystem.java new file mode 100644 index 0000000000..072897ebb7 --- /dev/null +++ b/BankingSystem.java @@ -0,0 +1,43 @@ +public class BankingSystem { + private String owner; + private double balance; + + public BankingSystem(String owner, double initialBalance) { + this.owner = owner; + this.balance = initialBalance; + } + + public void deposit(double amount) { + if (amount > 0) { + balance += amount; + } + } + + public void withdraw(double amount) { + if (amount <= balance) { + balance -= amount; + } + } + + public double getBalance() { + return balance; + } + + public void displayAccountInfo() { + System.out.println("Account Owner: " + owner); + System.out.println("Account Balance: $" + balance); + } + + public static void main(String[] args) { + BankingSystem userAccount = new BankingSystem("John Doe", 1000.0); + userAccount.displayAccountInfo(); + + userAccount.deposit(500.0); + userAccount.displayAccountInfo(); + + userAccount.withdraw(300.0); + userAccount.displayAccountInfo(); + + System.out.println("\nCurrent Balance: $" + userAccount.getBalance()); + } +} diff --git a/example.html b/example.html new file mode 100644 index 0000000000..67bcc894a6 --- /dev/null +++ b/example.html @@ -0,0 +1,22 @@ + + + + + + Document + + + +

hello this is version 2 of example.html

+ + hello this is version 3 of example.html + + + +hello this is version 4 of example.html + +

This is the version 5 of the example.html and now i am + pushing this on github +

+ +

this is to track new branch flow

\ No newline at end of file diff --git a/hello.c b/hello.c new file mode 100644 index 0000000000..cd10f56503 --- /dev/null +++ b/hello.c @@ -0,0 +1,12 @@ +#include + +int main() +{ +printf("Hello github!!"); + +return 0; + +printf("to track the new branch and now i am testing the conflict and now time to check conflict"); + + +} \ No newline at end of file