| | |
unexpected type error
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
--------------------Configuration: <Default>--------------------
C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type
found : char
required: reference
Set <char>setAlpha = new HashSet<char>();
^
C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type
found : char
required: reference
Set <char>setAlpha = new HashSet<char>();
^
2 errors
how come i cant cast a char on a set??? it works well with other data types.
thanks in advance
C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type
found : char
required: reference
Set <char>setAlpha = new HashSet<char>();
^
C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type
found : char
required: reference
Set <char>setAlpha = new HashSet<char>();
^
2 errors
how come i cant cast a char on a set??? it works well with other data types.
thanks in advance
if you cant hit 2 birds with one stone try hitting just one or you will end up with nothing at all
--------------------Configuration: <Default>--------------------
C:\Documents and Settings\mykel\Desktop\auto.java:4: cannot find symbol
symbol : class Char
location: class auto
Set <Char>s = new HashSet<Char>();
^
C:\Documents and Settings\mykel\Desktop\auto.java:4: cannot find symbol
symbol : class Char
location: class auto
Set <Char>s = new HashSet<Char>();
^
2 errors
whats autoboxing???
C:\Documents and Settings\mykel\Desktop\auto.java:4: cannot find symbol
symbol : class Char
location: class auto
Set <Char>s = new HashSet<Char>();
^
C:\Documents and Settings\mykel\Desktop\auto.java:4: cannot find symbol
symbol : class Char
location: class auto
Set <Char>s = new HashSet<Char>();
^
2 errors
whats autoboxing???
if you cant hit 2 birds with one stone try hitting just one or you will end up with nothing at all
![]() |
Similar Threads
- Precompiled Headers & Unexpected EOF error (C++)
- svchost.exe error (Windows NT / 2000 / XP)
- iexplorer.exe send error reports(1 too many) (Web Browsers)
- struct type redefinition (C++)
Other Threads in the Java Forum
- Previous Thread: How to install Apache POI
- Next Thread: java Calculator- wrong calculation
| Thread Tools | Search this Thread |
2dgraphics android api apple applet application arguments array arrays automation banking binary binarytree bluetooth capture chat chatprogramusingobjects class classes client code color component count database derby design eclipse eclipsedevelopment encryption error event exception fractal game givemetehcodez graphics gridlayout gui html ide if_statement image input integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel julia keyword linux list loop macintosh map method methods midlethttpconnection mobile netbeans newbie object os print printing problem producer program programming project projectideas read recursion reference replaysolutions ria scanner screen server set size sms sort sourcelabs sql stop string swing threads transforms tree ui unicode validation windows






