This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I know how to display data in a rectangular form using two for loops and using length attribute in arrays.
But I don't know how do I get the  th element empty. (I've represented the space like this " ")
I put NULL and tried but it didn't work.
It depends on the data type. If the array is of primitive ints, say, you'd have to use a zero (0), not a null. If it's an array of objects, you can use null. But that won't necessarily display the way you want.
In order to get a space you'd need to either use a datatype that allowed spaces (like strings), or do a conversion during the display process (like null-to-space). I'm sure there are other solutions too.
Joined: Jan 17, 2010
ummm, I don't understand.
I am new to this language actually. Here's what i have been going through..
This is how I have learned, is there a way to put a empty space on  th?