Web Analytics Made Easy -
StatCounter how do I parse in Java? - CodingForum

Announcement

Collapse
No announcement yet.

how do I parse in Java?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how do I parse in Java?

    I have pdf files in folder 30,31,32,33....etc... when I pull up file # 32456, it should direct to folder 32. How do I get the first two numbers of the file name inside the database?

    DB=Files
    Column Name = file_name

    filename = rs.getString("file_name")
    filefolder = ???first two numbers in filename ?????

    i need that filefolder varible... how do i do it??

    thanks in advance..

    Tony
    ---------
    Client / Server Side Programmer II

  • #2
    nevermind...I figured it out. You gotta use substrings...i.e. "300000".substring(0,2)
    ---------
    Client / Server Side Programmer II

    Comment

    Working...
    X