Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unclosed String Literal

807597Apr 27 2005 — edited Oct 17 2005
I try to find a specific character from a String!

String name = "C:\windows\Destop\hello"
int a = name.lastIndexOf("\");

but then error appears and tells me

unclosed String Literal for ("\")


I don't know why?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2005
Added on Apr 27 2005
11 comments
1,193 views