View Single Post
  #209 (permalink)  
Old 09-27-2008, 12:35 PM
marwex89's Avatar   
marwex89 marwex89 is offline
Guru
 
Join Date: Jul 2008
Location: Viking-land!
Posts: 3,995
Credits: 0
Rep Power: 30
marwex89 is a jewel in the roughmarwex89 is a jewel in the roughmarwex89 is a jewel in the rough
Send a message via AIM to marwex89
Default Re: Contest: C# vs. Java vs. Visual Basic

Dunno, didn't read the details..

Code:
switch (drawing) {
    case RECTANGLE: (...)
This is what you need.... You just make an enum (MyDearStringEnum ) with these string
elements ("black", "blue", "yellow", "TcM" etc) and put

switch (MyDearStringEnum)
case "black": etc...

Or just use ifs.
__________________
Reply With Quote