How to declare a constant in Java?
Tuesday, February 15, 2011 Tuesday, February 15, 2011
Posted by Programming Documentation Blog
The statement of declaring a constant in Java is final
Code:
final static double PI = 3.14; final int DAY = 24;
PLEASE note that the constant name should be in CAPITAL LETTERS.
Adding Categories to Blogspot Blogger
Tuesday, February 15, 2011
Posted by Programming Documentation Blog
I was searching how to add categories to my blog in blogspot and I found this great article. Its all about using labels and then adding a side gadget to list these labels (categories) and even the number of posts in them.
http://interestingwebs.blogspot.com/2008/11/adding-categories-to-blogspot-blogger.html
Starting Java
Tuesday, February 15, 2011
Posted by Programming Documentation Blog
This is my first post about Java programming language, I'll start this post with variables and how to declare them.
int i; int i,j,k; int m = 1, s = 2, k = 40; float r; double w = 2.5; String myString = "Hello"; String mySt = 'This is wrong'; // Wrong declaration of String ... it should be with double qoute
Blog for life!
Monday, February 14, 2011 Monday, February 14, 2011
Posted by Programming Documentation Blog
Hey!
I have started this blog to jot my daily programming activities and adding some codes and tutorials in using programming languages like java, python,php and soon with Object-C as I'm going to learn it for iPhone development.