Why is this program has an error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is this program has an error?

public class Program { public static void main(String[] args) { String alphabet = "abcdefghijklmnopqrstuvwxyz"; System.out.prinln(alphabet); } }

10th Mar 2023, 3:29 PM
Gargie Chaturvedi
Gargie Chaturvedi - avatar
3 Answers
+ 12
Gargie Chaturvedi Just an typo it's println you missed t.
10th Mar 2023, 4:01 PM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
+ 4
.Println for new line .Print to Stay on the same line.
10th Mar 2023, 7:33 PM
D_Stark
D_Stark - avatar
+ 1
Thanks
11th Mar 2023, 3:54 AM
Gargie Chaturvedi
Gargie Chaturvedi - avatar