Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Certification
»
Programmer Certification (OCPJP)
Doubt in path separator
Sekhar Choudary
,
Ranch Hand
Aug 08, 2008 04:01:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Hi ,
Can any one explain differences between
1)pathSeparator
2)pathSeparatorChar,
3)separator
4)separatorChar.
Thanks .
Sagar Rohankar
,
Ranch Hand
Aug 08, 2008 04:44:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
All four are seems to be the same thing in
Java
, either unix OS "/" or windows OS "\" , called Path Separator, and they are represented by
string
!
Where you find those words !
Nikos Pougounias
,
Ranch Hand
Aug 11, 2008 13:47:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Actually,
path
Separator is used to separate the entries in path. In Windows it's
;
and in Unix systems it's
:
.
For example, see how these entries are separated
System.out.println(System.getProperty("java.library.path"));
pathSeparator is a
String
and pathSeparatorChar is a
char
. It's convenient to have both available.
Post by:
autobot
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
This thread has been viewed 587 times.
Similar Threads
How do i read .ldif file through java?
getting exact url
Need component separator
need basic help to compile first servelet
How to use user Defined separator in JPopupMenu instead of addSeparator() provided by Java Swing
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:37:35
.