- package : written at the beginning of writing codes, which encapsulate a group of classes, sub packages and interfaces, ended with semicolon (;).
- class : written under package(s), is a blueprint or prototype of object, started and ended with curly brackets
public class AvatarDuel {..}
- main : part of the code that'll run.
public static void main( String[ ] args ) {...}
Here is an example of project using gradle as the build tools. Try running these commands:
./gradlew run
You will notice that it will open a window that display 'Avatar Duel'.
In the command line you can see the data that is being read by CSVReader.java
What happen is when you use ./gradlew run
, it will start the main function in your app.
For this app, the main function lives in AvatarDuel.java
.
You can explore more about gradle here
All images and description are taken from Avatar Wikia