• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help on Assignment Java-5 (Times)  RSS feed

 
Phillip Larson
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please help with assignment Java- 5 (Times)? The idea of this assignment is to learn how to convert integers to strings, how to format text, how to use nested loops.
Write a program that (algorithmically) shows a times table.

Right now I'm so lost and confused, can someone please point me in the right direction?

Here my code
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Your code has 2 for loops which is the correct approach. Yet why need to go to x<11 when it's looking for a 9x9 times table.

Also for the printf statement, I rather you stick with the println before you get the correct output.

As your question, the "+" is used for string concatenation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!