0

What is a compilation error? (ANSWERED)

my code has an output of compilation error and i dont know what that is so i cant fix it. help https://code.sololearn.com/cWGZdg9BqK9F/?ref=app

7th Sep 2017, 1:10 AM
skeeth
2 odpowiedzi
+ 1
Here's a quick working solution to iron out all the compilation errors: public class Program { public static void main(String[] args) { String[ ] letter = { "A","B","C","D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}; int x = -1; int y = 0; while (y<26) { x++; System.out.println(letter [y]); System.out.println(letter [x]); if (x==25) { x-=26; y++; } } } }
7th Sep 2017, 1:23 AM
DaemonThread
DaemonThread - avatar
+ 1
compilation error happens when the compiler cannot understand your instructions or you are trying to do something illegal(from the compilers point of view)
7th Sep 2017, 1:48 AM
Testing003