Java Video Tutorial 14: Switch Statements (Pt 1 of 2)
Loading...
3,861
Loading...
Uploader Comments (GWShane)
see all
All Comments (8)
-
@aponicaftermat You did not end your curly braces. }}}
-
Thanks a lot ... Learned a lot ... Appreciate if you could post more videos ...
-
case 4: System.out.println('wed'); break; case 5: System.out.println('thur'); break; case 6: System.out.println('FRI'); break; case 7: System.out.println('sat'); break; } } }
-
Here is my code but I keep getting a launch error editor does not contain a main type, what is my problem here?
Loading...
public class switchf {
public static void main(String[] args){
int day = 6;
switch(day){
case 1: System.out.println('sunday');
break;
case 2: System.out.println('mon');
break;
case 3: System.out.println('tue');
break;
Aponicaftermat 3 years ago
@Aponicaftermat I believe these strings need to have double quotes around them, not single quotes.
GWShane 4 months ago
Thnks! I learned more from this than i did in my computer science class.
btw, how do you get your jcreator (if that's what it is) to have that different look to it?
is it a skin?
RikKkay 3 years ago
@RikKkay No prob man! Glad it helped. I'm actually just using eclipse classic.
GWShane 4 months ago