Please why is this code not working to give me the output abcdefghijklmnopqrstuvwxyz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please why is this code not working to give me the output abcdefghijklmnopqrstuvwxyz

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

26th Jan 2023, 9:07 PM
Daniel Okebowale
Daniel Okebowale - avatar
3 Answers
+ 3
You are using i (ink) , inplace of l (line) in System.out.println(...); use println(alphabet); instead of printIn(alphabet);
26th Jan 2023, 9:17 PM
Jayakrishna 🇮🇳
0
Please answer this question so that I will be able to proceed in my learning
26th Jan 2023, 9:08 PM
Daniel Okebowale
Daniel Okebowale - avatar
0
In other words a capital i looks the same as a lower case L So make sure you're using a lower case L for println
26th Jan 2023, 10:18 PM
Chris Coder
Chris Coder - avatar