
Originally Posted by
catch
how do you delimit using three characters - "[", ",", and "]"?
ill be using FileReader to "read" out the data then probably use StringTokenizer to delimit those three characters.
Create a class that inherits StringTokenizer object and implements a Clonable. Override the obj.clone() method. After nimo ang instantiate ang imong class (class that inherits StringTokenizer object and implements a Clonable). clone the instance 2 times. So naa na ka'y 3 instance (including the original). Then use each delimiters to delimit the 3 instances.
or
instantiate 3 different StringTokenizer object with the same String parameter and use each delimiter to delimit the 3 instances.
Code:
StringTokenizer object1=new StringTokenizer("[Sample],[text],[from],[istoryans],[cen]",",");
StringTokenizer object2=new StringTokenizer("[Sample],[text],[from],[istoryans],[cen]","[");
StringTokenizer object3=new StringTokenizer("[Sample],[text],[from],[istoryans],[cen]","]");
while(object1.hasMoreTokens()) {
System.out.println(object1.nextToken());
System.out.println(object2.nextToken());
System.out.println(object3.nextToken());
}

Originally Posted by
catch
next would be compare two arrays...
Binary Search Tree...
AVL Tree...
Hash Table...
Linked List..
and more...

im getting 3 hours of sleep every night
Hahahah... keep solving the problem bro. You can do it. Mo-adapt rana ang imong brain. Kung ang tao nga mag-cge og lift sa weight magka-dako man gani ang lawas. Same rana sa atong brain. Once your brain is bombarded with different problems the neurons will re-arrange so that next time you will solve that problem faster. Pero kailangan mo sleep lang gyud ka og tarong. Take it from me.

Originally Posted by
catch

im getting 3 hours of sleep every night
Good sleep makes good thinking brain. Pero dili gyud malikayan labi na nga mag-OverTime ka. Basta nindot ni organic nga brain ka'y naay ability nga mo-adapt.. 