I changed the i = 0 to i = 1, it looked like it did it. Thank you so much for your help.
Type: Posts; User: Pettsa
I changed the i = 0 to i = 1, it looked like it did it. Thank you so much for your help.
it runs:
computers
omputersc
mputersco
puterscom
uterscomp
terscompu
erscomput
rscompute
Then what?
I'm not sure, I am lost at what to do next. Do you think you can fix the code?
public class WordRectangle {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
//Declare variables
int count...
All I got it to work but... how would I loop it to make that word only have to right rows and columns for the specific word. Ex computers, 9 rows, 9 columns? Here is the code so far:
package...
On what line would I do that?
How would I add it to the end?
It outputs:
computers
omputers
mputers
puters
uters
And, no that is not what I want.
Ok I'm trying to figure this out......
Here is what I have so far.... can you show me an example of what to do?
package wordrectangle;
import javax.swing.JOptionPane;
import java.lang.String;...
I just don't know where they would go in my program.
Um, I am sorry, I understand the methods, really I do, this is all I have so far, could you please show me how to do it. My teacher doesn't teach us at all how to do these things and I am so stuck...
Um, I understand those methods but I don't know where to start.
When you enter a word it will display it as a regular word then shift a letter to the right, and it will be in rows and columns for the amount of letters the word has. Example:
COMPUTERS...
Hello, I was wondering how to create the code for a word rectangle in java?