Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Wednesday, April 22, 2009

Great Indian Developer Summit

Hey All,

Hope that many of my friends who are developers themselves, visit my blog regularly.

This Friday, April 24th -2009,IST, I will be attending the Java Day of Great Indian Developer Summit at Indian Institute of Science, Bangalore.

I am just too excited of this day, that I was waiting for long.

Guess what - we have some great Java Godfathers giving sessions on that day.

Some of these great folks are :-
1. Craig McClanahan - Could not guess who he is??? Ok, he is the founder of Apache Struts Framework. I am planning to attend like 2 to 3 of his sessions. Some interesting sessions being on Cloud Computing, RESTful Webservices, Ruby on Rails and many more.

2. Mike Keith - Ok this is the guy that I am thinking. This great man has written some wonderful books on JPA (Java persistence architecture), and also on EJB. I am hoping this is the same person I am thinking of. You never know that - my dreams may come true if he is the same.

Apart from these folks - there are other major things that are attracting many folks to this whole GIDS events.

Around Rs. 8 lakh worth prizes to be won from the 4 days event which started today and ends on Saturday- the April 25th.

Though I am more interested in learning from these great people of the "World of Java", the last thing for which I am interested and hope to win is ---- The Wiley technical books that are given away after each session.

We need to present a feedback after every session - which would win us these books.

Donno how many I may win???? !!!! ;-)

Hope to meet you fellow bloggers on that day.

Will keep you posted on the updates after that event. Have got prizes for that one too.

You never know as to from where all luck hits you. Ha ha ... ;-) :-)

Take care all,
Ananth Gouri

Wednesday, March 18, 2009

Today the Date is Mar 18th, 2009

Hi All,

Just thought of posting my second post on Java before going to bed.

As you see from the title, you might have guessed that I would try to write a simple program that would print the Date. You are absolutely out of sync with my mind.

Ok coming to the point, if we write a program to do my fickle (I said you were out of sync) mind's problem, i.e to print today's date.....

The code a normal newbie of Java would do is:

import java.util.Calendar;
public class DatePrint {

public static void main(String[] args) {

Calendar cal = Calendar.getInstance();

System.out.println(cal.YEAR);
System.out.println(cal.MONTH);
System.out.println(cal.DAY_OF_MONTH);
}

}


If you have enough time, do run this program.

Guessing you did that, don't hit me if you did not get 2009, 3, 18.

Alright let me tell you that, the above code seems to be extremely beautiful and if you think that it yields amazing results, I am sorry.

Now just try to add the following 3 lines after the last syso (aka, System.out.Println):

System.out.println(cal.get(Calendar.YEAR));
System.out.println(cal.get(Calendar.MONTH));
System.out.println(cal.get(Calendar.DAY_OF_MONTH));


Note that the above 2nd syso would still print the value as 2, since March has the Integer value of 2 in Calendar class.

Hope now after this, you got the catch of mistake a newbie would do.

Now cheer up, come out of the world of newbie/fresher/inexperienced and et al.

Please do mail me if you in your Java newbie life ever did this mistake. It would be fun to post it.

Take care, Good night.

Monday, March 16, 2009

This blog would contain.....

Hi All,

Ananth Blog 0.1

Starting off in a few days, this blog will contain articles about the following stuff:
1. Linux tweaks.
2. Java code snippets.
3. Hardware short tips.
4. Web Design and 3D design ideas.
5. Best OS Hunt

Keep visiting for more and more.

Depending upon the response from the readers, I may include the following too in the so called version 0.2 of Ananth Blog. the list will be revealed shortly. Keep waiting.

Thanks,
Ananth Gouri