My homework assignment requires me to read a text file and manually justify it to left, center and full.
So far I've been able to do left and center, but I couldn't figure out how to do full justification.
BTW I used StringTokenizer to split text in words.
Anyone, the algorithm, or even better, a sample code?
TIA !!
So far I've been able to do left and center, but I couldn't figure out how to do full justification.
BTW I used StringTokenizer to split text in words.
Anyone, the algorithm, or even better, a sample code?
TIA !!