Maveric Jones wrote:I have just started learning java, and am trying to write a program to employ some of the principles I'm learning. Unfortunatly, I'm having some problems with Incompatible types. Firstly, and most importantly, I don't really understand what "Incompatable Types" means. I know im somehow "mixing up" my int and scanner, but beyond that, I'm not sure what I'm doing wrong.
The specific error is on line 30. (I will make an arrow to show you all which specific line I mean)
To note, I am entirely new to both this forum and Java itself. Any, "Well why the hell didn't you just do this???!!!" comments are not appreciated. Contrarily, any, "These are the rules on this forum." comments are appreciated. I'm not entirely sure if this is where I was to post this question, and I'd be happy to move it if necessary.
Here is the code. Thank you many times for any help / info.
Not that anyone in their right mind would want to, but please don't use this code without asking me. Choppy though it may seem, it represents a good bit of time and effort to me.
Maveric Jones wrote:Awesome, thank you. What about 'double' objects? Are they compatible? int and scanner are two objects I use fairly often, and, as such, I get the above error code often. I am trying to figure out a way to repair or work around this in my code.
Michael Rippee wrote:
I was meaning about Scanners being used to define variables as in,
int myVarible = myScanner.nextInt()