I suppose using ' ' instead of " " leads to adding an ASCII value of ' ' to my i*j term. Is there any other possibility to tell compiler that I mean Character and not it's ASCII value?
Of course I can use String, but it appears to me not that efficient.
package en.codegym.task.jdk13.task04.task0434;
/*
Multiplication table
*/
public class Solution {
public static void main(String[] args) {
//write your code here
int j;
for (int i = 1; i <= 10; i++)
{
for (j = 1; j <= 10; j++)
{
if (j < 10) System.out.print(i*j + ' ');
else System.out.println(i*j);
}
}
}
}