After reading so many informative posts this morning (strokes, Sudoku, knitting, computer animation, shorthand, and many more), I thought I’d write my own. I’ll start with a poem:
Roses are red
Violets are blue
Java is awesome
And so are you!
I learnt Java through Kathy Sierra’s Head First Java:
The reason why I loved it so much was because of the poetry scattered throughout:
And another one:
Of course, I never realized this at the time. They were mere snippets of the book that really resonated with me (Wow, look at all this poetry, it is so cool, awesomeness). I would write all my own verses to match the ones I’d read.
So here’s a quick tutorial on a first Java program.
The following steps are how to get started with coding.
Install Java on any computer. And then follow the steps:
1. Create and save MyFirstApp.java (included below). For beginner purposes this can be done in a notepad and not an IDE. In fact, we never had the luxury of IDEs when I studied “so long ago”. In the days before Google.
2. Compile to create a class file (MyFirstApp.class) (google it if you need details)
javac MyFirstApp.java
3. Run the app from the console
And here is how a sample .java file looks like:
public class MyFirstApp {
public static void main(String[] args) {
System.out.println(“I Rule!”);
System.out.println(“The World”);
}
}
It’s been suggested I never go into teaching, so I’ll write poetry instead:
Roses are red
Violets are blue
I love coding
How about you?



Reblogged this on Bohemian Nerd and commented:
Java never seemed so easy!
LikeLike
Thank you!
LikeLiked by 1 person
Nice combination with poetry + Java.. actually loved it! π
Btw I have nominated you for an award (Liebster Award). If you do take part in award ceremonies in blogging, please do take a look! π π
Here’s the link: https://beingbettr.wordpress.com/2015/02/05/readers-choice-award-1-by-flippyzipflop/
Be Bettr, Stay Bettr! π
Swetank.
LikeLiked by 1 person
Hi, thank you so much for the award! I am no accepting awards, but do appreciate the nomination, and will check out your post! Thank you for reading and enjoying my post, I’ve been in the mood to write a bit more than poetry lately, hoping the readers won’t mind too much LOL π
LikeLiked by 1 person
Every single soul is a new window to a different world. I welcomes everything! Looking forward to your posts! π
Be Bettr, Stay Betr!
Swetank.
LikeLiked by 1 person
Thank you for reading my blog π Good meeting you π
LikeLiked by 1 person
I hope you will find useful my blog too! Well, I too carry a sole purpose with my blog.. is to educate, help and motivate everyone being a better person! I am sure you will love it…
There is a new post called “@BeingBettr Asks” .. I would love to see your thought on that… will be waiting!! π
Be Bettr, Stay Bettr!
Swetank. π
LikeLiked by 1 person
Hi, I am learning JAVA and loved your way of teaching through poem. Kindly write some more. π
LikeLiked by 1 person
Thank you, I would have to start another blog to do that, otherwise I might lose all my poetry readers! Glad you enjoyed the post! π
LikeLiked by 1 person
I really enjoy reading your post. BTY, You can always start another. π
LikeLiked by 1 person
Thank you so much! π
LikeLike
Roses are red,
violets are sleek,
your post made my day
no, make that my week!
I’ll never be an actual poet, but the fact that my silly little poems made a difference for someone learning Java makes me happier than you can imagine.
Thank-you.
— Kathy Sierra (Katrina Geringer)
LikeLiked by 1 person
Wow, Kathy, you are my hero I have worked through all your books (including scjp manuals for Java 5 and 6), was very sad when you stopped your blog. Amazing to be in contact with you! And I Did take up your challenge to write my own (is-a relationship):
Roses are red
Violets are toys
A boy is a person
But not all people are boys!
Thank you for stopping by, great to meet you, glad you have seen my post!
LikeLike