| Author |
Assing the value
|
pankaj semwal
Ranch Hand
Joined: Oct 07, 2008
Posts: 300
|
|
Hi,
I want to put the following path in a variable
like String str=C:\Documents and Settings\Administrator\Desktop
But its showing error.
Please help me how to solve this problem
Thanks
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16680
|
|
It's probably a good idea to use quotes around a string literal... And escape the backslashes too...
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Lucas Franceschi
Ranch Hand
Joined: Nov 10, 2008
Posts: 106
|
|
why dont you post us your error?
but, i probably think that its exactly what henry said...
try doing this
should work
|
Lucas Franceschi
Software Developer for SGI Sistemas, lukas1596@gmail.com
|
 |
Lucas Franceschi
Ranch Hand
Joined: Nov 10, 2008
Posts: 106
|
|
oh, and you probably mean assign, when you say assing, right?
(UPD: i'm starting to go crazy, i'm typing non-sense things.)
|
 |
 |
|
|
subject: Assing the value
|
|
|