Skip to content

Commit 334f79d

Browse files
committed
update
1 parent 7e96ece commit 334f79d

117 files changed

Lines changed: 2924 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎BankLoanService/.classpath‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
5+
<classpathentry kind="lib" path="D:/Swarup/Natraj Sir DVD-2/Tools/JUNIT/junit4.4/junit-4.4.jar"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

‎BankLoanService/.project‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>BankLoanService</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.8
1 KB
Binary file not shown.
255 Bytes
Binary file not shown.
1.52 KB
Binary file not shown.
589 Bytes
Binary file not shown.
3.17 KB
Binary file not shown.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package com.nt.service;
2+
3+
public class BankLoanServiceImpl implements BankLoanServices {
4+
5+
@Override
6+
public float calIntrAmt(float pAmt, float rate, float time) throws IllegalArgumentException {
7+
float intrAmt=0.0f;
8+
/*intrAmt=pAmt*rate*time/100.0f;
9+
10+
return intrAmt;*/
11+
12+
try{
13+
Thread.sleep(1000);
14+
}
15+
catch(Exception e){}
16+
if(pAmt<0||rate<=0||time<=0)
17+
throw new IllegalArgumentException("Invalid inputs");
18+
intrAmt=pAmt*rate*time/100.0f;
19+
return intrAmt;
20+
21+
}//method
22+
23+
@Override
24+
public boolean isAccountBlocked(int accNo) {
25+
if(accNo<=0)
26+
throw new IllegalArgumentException("Invalid Account No.");
27+
if(accNo>=10000 && accNo<=20000)
28+
return true;
29+
else
30+
return false;
31+
}
32+
33+
}//class
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.nt.service;
2+
3+
public interface BankLoanServices {
4+
public float calIntrAmt(float pAmt,float rate,float time)throws IllegalArgumentException;
5+
public boolean isAccountBlocked(int accNo);
6+
}

0 commit comments

Comments
 (0)