This is the error I am getting.
----jGRASP exec: javac -g Scan1.java
Scan1.java:23: error: incomparable types: String and int
while (item != 999)
^...
Type: Posts; User: zizo911
This is the error I am getting.
----jGRASP exec: javac -g Scan1.java
Scan1.java:23: error: incomparable types: String and int
while (item != 999)
^...
So the question asks us to use a sentinel value to end a program, but the sentinel value is 999, but the while loop only recognises strings... Im totally lost guys. Hope you can help me :)
...
Hey there, my name is Ziyaad and I'm currently studying computer science as a major at university.
Can't wait to help out in the forum. I'm from south africa!!