This repository contains code files and resources for learning Java programming language. The structure of the repository is organized into different sections, each focusing on specific topics.
Read all readme.md files they provide a meaningful way to understand the structure of the entire directory(repository.) and java files are created with .java extension. example: Filename.java, Main.java
Thanks for understanding.
-
- part one: Introduction to Java programming language.
- part two: Variables, operators, Strings, and mathematical operations.
- part three: Control statements, loops, and arrays.
-
- Introduction to methods in Java.
- Explanation of method declaration and invocation.
- Different types of methods: static methods, instance methods, constructors.
- Method overloading and overriding.
- Examples demonstrating the usage of methods in Java programs.
Feel free to explore the directories and files according to your learning needs. Each section contains code examples and explanations to help you understand different concepts in Java programming.
To run the Java files directly with Java, execute the following command in your terminal:
java Filename.javaor you may start by compiling the file and then run the compiled class
javac Filename.javathe command above will create a java class of the respective java file in the same directory and then run this command
java Filenamethe java class has a .class extension but this time run it wihout a .class extension.
Replace Filename.java with the name of the Java file you want to execute.
If you find any issues or want to contribute by adding more other concepts and examples to this repository, please feel free to submit a pull request or open an issue. Remember to read CONTRIBUTING GUIDELINES and CODE OF CONDUCT files before contributing.
Happy coding!