New course! Every coder should learn Generative AI!
Try a free lesson0
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); } }
3 Answers
+ 3
You are using i (ink) , inplace of l (line)
in System.out.println(...);
use println(alphabet); instead of printIn(alphabet);
0
Please answer this question so that I will be able to proceed in my learning
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