my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Substring capture To Write A list Of instances in A New Document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Substring capture To Write A list Of instances in A New Document

Nick Rowe
Ranch Hand

Joined: May 26, 2010
Posts: 88
Hi Guys,

About my Program:
Im brand new to Java and this is further development for my first program. So far my program captures the data between two strings and stores the substring value within an array. Once all the documents have been read in from the folder and all instances are captured. They are then sorted within the array and printed in a new document.

What I need to do now:

Basically i need to know capture another value between two other strings and return it below the first set as the value is of a different type.

i need to return a value between a string beginning with the value "<$" and ending in "=", the problem is. I've tried testing the changes variable parameter in my Working existing document but it doesn't write anything once the change is made. Does this mean that i cannot use "$" symbol as a value?

below is my code, as mentioned this works fully for one set of values, Please can anyone help me im really struggling with this.

regards Nick

David Newton

Joined: Sep 29, 2008
Posts: 12617

Locking; continue in the other thread.

(And you're not "literally" brand new, because you've been posting Java questions for a couple of months.)
wood burning stoves
subject: Substring capture To Write A list Of instances in A New Document
Similar Threads
Calling the method from another method within the same class
Returning A List Of Variables From A Folder Of Documents And Returning Them Into A New Document
Why is my string still writing data to my file that i've asked it not to?
Dumping A string value???
If String Contains (symbols) then call main method