+ 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 Respuestas
+ 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