It is a very simple code but doesn't compile | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

It is a very simple code but doesn't compile

this is the code= class Apples { public static void main(String[] args) { System.out.println("Hello world! "); } } When I compile it,it keeps on telling me invalid character constant

3rd Jan 2018, 9:22 PM
omitogun toni
omitogun toni - avatar
5 Answers
3rd Jan 2018, 9:47 PM
blackcat1111
blackcat1111 - avatar
0
I did exactly the same thing you did and it is still says invalid character constant
3rd Jan 2018, 10:09 PM
omitogun toni
omitogun toni - avatar
0
maybe because of my compiler. I use eclipse compiler 4.5 or probably a setting
3rd Jan 2018, 10:10 PM
omitogun toni
omitogun toni - avatar
0
which application do you feel I should use to run Java codes on pc
3rd Jan 2018, 10:11 PM
omitogun toni
omitogun toni - avatar
0
pls what is the meaning of character constant
3rd Jan 2018, 10:28 PM
omitogun toni
omitogun toni - avatar