943,999 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2513
  • Java RSS
Oct 4th, 2005
0

Pathname Problem

Expand Post »
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
Java Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Chipsncoke is offline Offline
11 posts
since Sep 2005
Oct 4th, 2005
0

Re: Pathname Problem

I forgot one point I am Using URI's .

Thanks
Chipsncoke
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Chipsncoke is offline Offline
11 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Still cannot resolve symbol
Next Thread in Java Forum Timeline: Google & Sun Partner to tackle Microsoft





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC