Skip to content

tobiasbueschel/simple-java-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simple Java Programs

A collection of simple Java programs developed during my MSc Computer Science degree at UCL.

Installation

In order to use the code inside this repository, you will need to have Java installed. You can then use javac to compile any code snippet you want to run:

$ javac tutorial_0/CurrentDate.java

To run the CurrentDate program, all you need to do is execute:

$ java tutorial_0/CurrentDate

Alternatively, you can use an IDE such as Eclipse or IntelliJ IDEA.

⚠️ 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

About

🎨These programs were developed at @UCL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages