Browse Source

Test1

master
Moritz Neumeier 3 years ago
parent
commit
998785f9d7

+ 13
- 0
TriangleCheckerAssignment.iml View File

<?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" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="jars" level="project" />
</component>
</module>

BIN
out/test/TriangleCheckerAssignment/TriangleCheckerTest.class View File


+ 7
- 1
src/TriangleChecker.java View File



// Analyse der Dreiecksart // Analyse der Dreiecksart
public static TriangleType checkTriangle(float a, float b, float c) { public static TriangleType checkTriangle(float a, float b, float c) {
return TriangleType.NONE;

if(a >= (b+c) || c >= (b+a) || b >= (a+c) ){
return TriangleType.NONE;
}
return TriangleType.NORMAL;


} }





Loading…
Cancel
Save