Variables In Java, you use variables to store some information. Like in Calculator class you use 'model' and 'producentName' to store the information respectively about calculator's model and producer's name: In class Potato in main() method you also have a variable: Variables have a name (the word you use to refer to the value the variable… Continue reading A word on Java Types.
What is a package? The potato asked me yesterday: what actually is a package? Let's take a look at the project: In your *.java file, you also have the package blog.jumpstart.learningPath defined: The package represents a real system folder. They are created in the source folders. When you check the file properties (Right click on file… Continue reading Polish apples in Russia: what’s the package (in Java)?
The time has come. After many attempts to understand everything what is written in a few books on my shelf and to pay attention for videos which I saw on youtube, I found a possibility to learn Java by interaction. Or better: the possibility has found me. Maybe I’m not a very perceptive person but… Continue reading System.out.println (“Hello Potato!”);
But Calculator's attributes have no keyword! In last adventure, I told you that you can use the public keyword in class declaration or before every class member: attribute and method. When something is public it's known everywhere. You've seen public class and public methods. Then you looked at the code and you've noticed: And you… Continue reading Getting lost on the trail: what when there’s no keyword?
Class declaration Do you remember class declaration of Calculator? You know it's a class because of the keyword class before the class name. But what's the public there? Imagine your Java project is a town and every class is a building. In the town, everyone can visit public places like the museum or the cafe.… Continue reading Visit in the museum: access level – public (and what it means in Java)
Here's the video with quick summary of last week adventures 🙂
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!