项目作者: Koziar

项目描述 :
🚀 Triangle Intro Exercise
高级语言: Java
项目地址: git://github.com/Koziar/Triangle.git
创建时间: 2017-02-07T16:12:14Z
项目社区:https://github.com/Koziar/Triangle

开源协议:MIT License

下载


🚀 Triangle Exercise

The program reads three integer values from an input dialog. The three values represent the lengths of the sides of a triangle. The program displays a message that states whether the triangle is scalene (ingen ens sider), isosceles (ligebenet), or equilateral (ligesidet)

Table of Contents

Try it out!

  • Download the code
  • In your console go to out/production/Triangles
  • Type java Main
  • Enjoy 🤙🏻

Test cases

  1. Test case | status

———————————————————————————————————-|—————
3 the same ints (equilateral) | ✔︎
2 the same ints, one different int (isosceles) | ✔︎
3 random ints (scalene) | ✔︎
3 random ints which by the triangle definition can’t build a triangle | ✔︎
At least one value is a zero or less | ✔︎
At least one value is not an int | ✔︎
At least one value is not a number (String, char, etc.) | ✔︎
Empty input | ✔︎

Code review of a fellow student

Review ✍🏻

My code standards

Code standards