Java is powerful. You can do many things with Java. Java is ugly too. Really. You don't want to use Java to write the part of the application that your user will see. That part is called UI - User Interface or GUI - Graphical User Interface. That's why I started with tests. You can… Continue reading Potato wants to use a calculator
New Project: Potato Coding Adventure I've started a new project this week. I wrote about it here. My friend (we call her The Potato) and I decided, however, that we want to write the blog together. That's why it's the last post in Java Learning Path in the Jump Start Blog. I'll be leading the… Continue reading Join Potato Coding Adventure!
When I studied electronics everyone was using scientific calculator made by Casio. It model was fx350ES PLUS. Every second person had the same one. Like a real object has its own characteristics, so does Java Objects. Those characteristics are called attributes. The Calculator class you already know also has attributes describing it such as model or a producer:… Continue reading Inside the hut: class attributes
Haters gonna hate, potatoes gonna potate. But some potatoes will also learn programming in Java. Welcome on the potato coding adventure path!
What are Methods? As I wrote in previous chapter methods do things. The method is a piece of code that has a name and can be used in various places of your program. After method finishes its task it can return a result. Let's take a look at the well-known method add: The method above… Continue reading Inside the hut: methods
Object Oriented Programming In Java, you can write code that represents real objects. It's called OOP = Object Oriented Programming. If the programming is object oriented it must have objects. You object is a calculator. In real life, you also have an object that is known as a calculator. Object Objects in Java can easily map to… Continue reading First hut on the trail: Basics of Object Oriented Programming (OOP)
In your Calculator project you have two java files: Calculator.java in src/main/java where you will write the calculations CalculatorTest.java in src/test/java that you will use to test the code written in Calculator.java Write some code Open Calculator.java. You can see a code needed to write some functions of the calculator inside: add, subtract, multiply etc. It is… Continue reading Going up: let's write some code!
You have the code. What now? I know it may be overwhelming. You did a couple of steps and you may not be sure why. I was like this once too. I still remember when I was asked to set up my first software project at my first job. I got access to SVN (a… Continue reading Second step: let's take a look at Java Project
Are you all set up? If not check how to prepare your backpack for Java hike. Read on if you're ready to go. Get the code base I've prepared for your first Java Gradle Project. You can get it from my GitHub repository (and no, you don't have to register): https://github.com/agazet/javaLearningPath Click Clone or download and copy… Continue reading Your first step on Java Learning Path
Here's why I made you install tools from the first chapter of the adventure 😉 Java 8 Java Development Kit 8: it's the newest officially released version of Java available as of today. Java 9 (JDK) release is set for September, but this date was moved a few times already so it's kind of big unknown.… Continue reading The choice of equipment explained