User Profile

Collapse

Profile Sidebar

Collapse
tachyon1984
tachyon1984
Last Activity: Sep 3 '09, 03:47 PM
Joined: Jan 31 '08
Location: Los Angeles, CA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tachyon1984
    replied to Text Alignment/Justification
    in Java
    Okay, I got it now. All I did was create a for loop to create a string of spaces based on the length of a label.
    See more | Go to post

    Leave a comment:


  • tachyon1984
    started a topic Text Alignment/Justification
    in Java

    Text Alignment/Justification

    Need some help in trying to align text using System.out.prin tln().

    An example of the problem is shown here:
    Code:
    	table_loc		lab		addr
    	142			GB		19
    	143			LH		25
    	632			RRUYLLLL		1AA
    The code:
    Code:
    System.out.println("\ttable_location\t\tlabel\t\taddr");
    		
    		for(int i = 0; i < hSize; i++)
    		{
    			if(!(Array[i].getLab().equals(empty)))
    ...
    See more | Go to post
No activity results to display
Show More
Working...