Uncategorized

Potato writes code: fizz buzz.

We haven't been writing for some time recently coz first I was sick and then The Potato left for her well-deserved vacation. Now we're all back to reality so it's time to get back to programming adventure. And here's the task I gave to potato: Please write a code that will execute game of FizzBuzz What's FizzBuzz?… Continue reading Potato writes code: fizz buzz.

Advertisements
Uncategorized

Surprising moments, that is: books vs. talk

First sessions with Aga are behind us. Apart from loops, conditional instructions etc. which I'll take care of 😉 next days, I'd like to describe the examples which show the difference between what I imagined while reading books and what I learned while talking with Aga. Constructors so important wow, many descriptions, many textbooks, much… Continue reading Surprising moments, that is: books vs. talk

java coding adventure

A word on Java Types.

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.

java coding adventure

Polish apples in Russia: what’s the package (in Java)?

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)?

java coding adventure

Getting lost on the trail: what when there’s no keyword?

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?

java coding adventure

Visit in the museum: access level – public (and what it means in Java)

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)