Learn Java with Raspberry Pi

Start coding in Java on Raspberry Pi with these resources.

By Phil King

Created by Sun Microsystems in 1995, Java is now one of the world’s most popular programming languages. Object-oriented, it’s highly versatile and fairly easy to learn. You can code with it on Raspberry Pi using Visual Studio Code (or another suitable IDE) to create applets that will run on any machine with Java Runtime Environment installed. One of the best ways to start learning Java is to get coding.

CodeGym is a practical, gamified course that involves solving 1200+ hands-on tasks of increasing complexity in a web IDE. At the start, you’re asked which learning style you prefer and whether you have any previous Java experience – a mini quiz determines your current level. ‘Dark matter’ earned from completing lessons and tasks is used to unlock the next ones. While the first level of lessons is free, you’ll need a paid subscription (or access via your educational establishment) to access the rest, but it’s ideal for beginners.

Free online courses

Study Java with these free courses

**EDX JAVA**

On the edX site, you’ll find a wide range of Java-based courses from top educational institutions – from introductory guides and fundamentals to more specific topics, such as data structures and algorithms. **magpi.cc/edxjava**

**INTRODUCTION TO JAVA**

Created by Duke University, this beginner’s course is available for free on Codecademy. As usual,

a web IDE lets you write and run code, and the course covers all the fundamentals of Java. **magpi.cc/codecademyjava**

**JAVA MULTITHREADING**

Uncover the mysteries of multithreading – executing two or more threads simultaneously on the CPU – with this three-hour video course aimed at coders with existing Java experience. **magpi.cc/javamulti**