Microsoft
Software
Hardware
Network
Question : Java typesafe file parser
I have a input file contains Color, Size and Shape like this:
RED LARGE TRIANGLE YELLOW SMALL SQUARE ...
Color would be RED YELLOW BLUE
Size would be LAREG SMALL MEDIUM
Shape would be TRIANGE CICLE SQUARE
All the three classes implements the same interface.
I need three bean classes which are Color, Size and Shape and driver class to read this file and loaded into each bean class and sort them, search them. Also I need make sure typesafe is used to make sure what is read is right. So Enum should be used for the bean classes.
Answer : Java typesafe file parser
this explains reading the file
http://helpdesk.objects.co
m.au/java/
using-scan
ner-to-rea
d-
words-fr
om-text-fi
le
And to convert the strings to enum see here
http://helpdesk.objects.co
m.au/java/
how-do-i-c
onvert-a-
s
tring-to-a
n-enum
Random Solutions
RHCE Exam
put disclaimer footer on exchange server 2003
get wrong autodiscover server in warning message....
Dead harddrive - clicking sound
I frequently get BSOD with error message DRIVER_IRQL-NOT_LESS_OR_EQ
UAL on windows vista/7
Error"Cannot connect to Citrix Server. Proxy detection failure: Improper auto-configuration URL"
Does ODBC connection from INFORMIX DB to MS ACCESS has committed read on the data?
convert c++ delegate parameters for managed code
Best way to "reimage" office computers so that they all have same OS
HP Mini 1000 - Unable to boot