https://github.com/tobiasbueschel/simple-java-programs
π¨These programs were developed at @UCL
https://github.com/tobiasbueschel/simple-java-programs
java java-8 learning-java ucl university-college-london
Last synced: 4 months ago
JSON representation
π¨These programs were developed at @UCL
- Host: GitHub
- URL: https://github.com/tobiasbueschel/simple-java-programs
- Owner: tobiasbueschel
- License: mit
- Created: 2015-11-05T17:15:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T20:27:01.000Z (about 5 years ago)
- Last Synced: 2024-10-28T09:09:25.511Z (about 1 year ago)
- Topics: java, java-8, learning-java, ucl, university-college-london
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 2
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Simple Java Programs
A collection of simple Java programs developed during my [MSc Computer Science](https://www.ucl.ac.uk/prospective-students/graduate/taught-degrees/computer-science-msc) degree at [UCL](https://www.ucl.ac.uk/).
## Installation
In order to use the code inside this repository, you will need to have [Java](https://www.java.com/en/download/) installed. You can then use `javac` to compile any code snippet you want to run:
```sh
$ javac tutorial_0/CurrentDate.java
```
To run the `CurrentDate` program, all you need to do is execute:
```sh
$ java tutorial_0/CurrentDate
```
Alternatively, you can use an IDE such as [Eclipse](https://www.eclipse.org/downloads/) or [IntelliJ IDEA](https://www.jetbrains.com/idea/).
:warning: Please note that this repository does not ship with any dependencies, hence, if you see an import statement such as: `import javax.swing.JPanel;`, then you need to make sure you have the jar file of this dependency loaded into your classpath before starting the program.
## Project Structure
```
.
βββ src
βββ tutorial_0
βΒ Β βββ CurrentDate.java
βΒ Β βββ ForLoop.java
βΒ Β βββ HelloWorld.java
βΒ Β βββ InputOutput.java
βΒ Β βββ NameValidation.java
βββ tutorial_1
βΒ Β βββ Arrays.java
βΒ Β βββ ByteConversion.java
βΒ Β βββ Chess.java
βΒ Β βββ Factorial.java
βΒ Β βββ Methods.java
βΒ Β βββ Types.java
βββ tutorial_2
βΒ Β βββ ArrElementRem.java
βΒ Β βββ Arraylist.java
βΒ Β βββ IntEven.java
βΒ Β βββ PascalTriangle.java
βΒ Β βββ Vectors.java
βββ tutorial_3
βΒ Β βββ CreditCard.java
βΒ Β βββ CreditCardTester.java
βΒ Β βββ DNAStrand.java
βΒ Β βββ DNAStrandTester.java
βΒ Β βββ Robot1.java
βΒ Β βββ Robot2.java
βββ tutorial_4
βΒ Β βββ CountLines.java
βΒ Β βββ currency_converter
βΒ Β βΒ Β βββ Currency.java
βΒ Β βΒ Β βββ CurrencyConverter.java
βΒ Β βΒ Β βββ Reader.java
βΒ Β βΒ Β βββ rates.txt
βΒ Β βββ whack_a_mole
βΒ Β βββ MoleGame.java
βββ tutorial_5
βββ Logging_Chess_Javadoc.java
βββ balls
βΒ Β βββ BallEntity.java
βΒ Β βββ BallGame.java
βΒ Β βββ Renderer.java
βββ xml
βββ SimpleErrorHandler.java
βββ Xml.java
```