Pathname Problem

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2005
Posts: 11
Reputation: Chipsncoke is an unknown quantity at this point 
Solved Threads: 0
Chipsncoke Chipsncoke is offline Offline
Newbie Poster

Pathname Problem

 
0
  #1
Oct 4th, 2005
I have an array list that stores some files. These files are shown to the user. Depending on the index chosen i will input the file to the program.

There fore i write
  1. //initialization
  2. List projecList = new ArrayList(//........);
  3.  
  4. //body
  5. String getproject = projectList.get(index).toString();
  6. updatepd(getproject);

if i system.out.println() the getproject string i get
file:/C:/Program%20Files/testproject/example.alp

but i need
C:/Program Files/testproject/example.alp...without the %20

I would really appreciate any help
thanks
chipsncoke
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 11
Reputation: Chipsncoke is an unknown quantity at this point 
Solved Threads: 0
Chipsncoke Chipsncoke is offline Offline
Newbie Poster

Re: Pathname Problem

 
0
  #2
Oct 4th, 2005
I forgot one point I am Using URI's .

Thanks
Chipsncoke
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 1881 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC