I tried running this program but it didnt compile. The error was as follows: Test003.java:6 : orphaned case case ^ 1 error What do we mean by this? Sonir
Sonir : Use a IDE for writing programs, you will know which to use and which not to. There is a Textpad available freely, which you can write small programs and run it easily. -A
Sonir : It means that you can not use reserved words as labels for loops. In general reserved words ( in any programming language) can not be used for any other purpose besides what they are defined as . So you can not write code such as for ( int case =1; case < boolean; case ++) or if ( while > do ) { //some code } HTH
code is fine only change the word case to somthing else like test1 or hello or sing case is a reserved word for the compiler. x=0 y=0 x=1 y=0
Originally posted by sonir shah:
I tried running this program but it didnt compile. The error was as follows: Test003.java:6 : orphaned case case ^ 1 error What do we mean by this? Sonir
Those are the largest trousers in the world! Especially when next to this ad: