This site requires JavaScript, please enable it in your browser!
Greenfoot back
iLoveSko0l123
iLoveSko0l123 wrote ...

2019/5/28

Greenfoot Question

iLoveSko0l123 iLoveSko0l123

2019/5/28

#
What is the difference between the colors of code? (green, blue, yellow)
Super_Hippo Super_Hippo

2019/5/28

#
It is just there so you can see which is which easier. You can also change those colors or remove them completely. For background: Green is code for classes, yellow for methods, red for loops and blue for any other code blocks such as "if". White is the rest. For code itself: variable types (int, bytes, also return type void) and class/extends/... are red, some keywords (this, null, …) are blue, others (instanceof) are yellow. Access modifiers (private, public, …) are purple. Comments are blue or gray and the rest is black.
You need to login to post a reply.