Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ATM Program
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
//import required classes and packages
import java.util.Scanner;

//create ATMExample class to implement the ATM functionality
import java.util.Scanner;
public class ATMExample
{
//main method starts
public static void main(String args[] )
{
//declare and initialize balance, withdraw, and deposit
Expand Down
4 changes: 1 addition & 3 deletions A_Beautiful_Matrix.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ public static void main(String args[])
System.out.print("Enter the number to check: " );
num=sc.nextInt();
while(num>0)
{
//finds the last digit of the number
{
lastdigit=num%10;
//adds last digit to the variable sum
sum=sum+lastdigit;
//calculates the product
product=product*lastdigit;
Expand Down
2 changes: 1 addition & 1 deletion Duck Number
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import java.util.*;
import java.io.*;
import java.util.Scanner;
public class DuckNumberExample {

//hi
// create checkNumber() method that returns true when it founds number Bu
public static boolean checkNumber(int number) {

Expand Down