0
Please solve the error
14 odpowiedzi
+ 5
Packages aren't allowed in Java .Just Temove the "package Hashmi" (line 1 and 24) and your program will run smoothly
+ 2
Oke...
+ 1
I need the output
1
1 1
1 1 1
1 1 1 1
+ 1
for (i=0;i<n;i++)
{
for (j=0;j<=i;j++)
{
System.out.print("1 ");
}
System.out.println();
}
It's Me
System.out.print() method don't add a new line after printing. (must requires at least one argument..) .
but System.out.println(); adds a new line after completes its printing.., it also accept empty arguments ..
+ 1
What's the errorJayakrishna🇮🇳
+ 1
Class interface enum expected error iam getting
+ 1
Ok i comment it..Jayakrishna🇮🇳 thank you
0
It's Me Sololearn don't support user defined package creation and importing.. so comment line no:1 and 24. It works then..
0
Delete lines number 1 and 24.
package hashi; this not supported in Sololearn.
0
You're welcome...It's Me
0
Great
0
Abhyudaya already answered
0
Hi