Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ClassAssessment3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
a-j.towse
ClassAssessment3
Commits
cd4d7d74
Commit
cd4d7d74
authored
May 16, 2022
by
a-j.towse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final commit
parent
b0293de0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
BankAccount.class
ClassAssessment3/bin/BankAccount.class
+0
-0
BankAccount.java
ClassAssessment3/src/BankAccount.java
+1
-1
No files found.
ClassAssessment3/bin/BankAccount.class
View file @
cd4d7d74
No preview for this file type
ClassAssessment3/src/BankAccount.java
View file @
cd4d7d74
...
@@ -24,7 +24,7 @@ public class BankAccount {
...
@@ -24,7 +24,7 @@ public class BankAccount {
}
}
public
void
withdrawal
(
double
outAmount
){
public
void
withdrawal
(
double
outAmount
){
if
(
outAmount
<=
balance
||
outAmount
>
0
-
overdraft
){
if
(
outAmount
<=
balance
&&
outAmount
>
0
-
overdraft
){
balance
-=
outAmount
;
balance
-=
outAmount
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment