We are going to discuss, step by step, each line of code just below.įor now, I want you to start by noting that every line of code that runs in Java must be in a class. My name is Patrick Cyubahiro.") ĭon't worry if you don't understand the above code at the moment. After creating and saving the file, we are going to use the below lines of code to get the expected output. We are going to start by creating our first Java file called Main.java, which can be done in any text editor. Let's write a Java program that prints the message “Hello freeCodeCamp community. When saving a file, save it using the class name and add “.java ” to the end of the file name. In Java, every application starts with a class name, and this class must match the file name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |