ok, i been tryin to get my head around this all weekend but im useless at it. i have the sollution but its saved to my laptop which i left in uni and is now missing!! but im trying to write a program which allows the user to input 3 integers representing angles of a triangle. the java program then outputs wether its an isosceles, rightangled or equalateral triangle. the output i understand. its the user input that i cant get to work. im using Jcreator pro and using "getScannerInput.anInt........" but it wont work!! i would be forever grateful if some1 could help me out wit the script, and i wud finally be able to get some sleep
cheers
gingergib 2 Newbie Poster
Recommended Answers
Jump to Post>getScannerInput.anInt
yes there is nothing like this in Java classes. You better check what options you best to use in JAVA APIdocumenation
I usauly do it like this
Scanner …
Jump to Postyou put your braclets in wrong place, opening bracked before if statement, plus you had extra bracklet on the end. Also you don't have to do if this do this, if this do that, use else if or switch. But I belive you going by book so you get there. …
All 5 Replies
cms271828 2 Junior Poster

iamthwee
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
gingergib 2 Newbie Poster
peter_budo commented: Right question get fast response, he know it :-) +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.