How is Java World Going These Days - A SummaryJuly 14th, 2005 Today I had an interesting conversation with my ex-Boss and good friend. He asked me to summarize the current state of Java world these days as he was busy with databases and scientific computing.
Java Annotation based FrameworksOctober 7th, 2005 Now everyone and their Mother-in-law is jumping in the Annotation bandwagon. I believe Cedric was the first developer to come up with an annotation based framework - TestNG.
Move Over Rails (RoR): We (Java Community) Have Grails, Trails and Now SailsApril 10th, 2006 The beauty about Java community is that they never shy of creating yet another framework for any new / good idea. You have seen dozens (or more) of dependency injection (IoC) frameworks.
Comparing Java Software Testing Frameworks - JUnit, JTiger and TestNGAugust 2nd, 2005 Justin compares the three popular Java Software Testing (mostly unit testing) frameworks - JUnit, TestNG and JTiger. He provides an unbiased view IMHO despite his lack of experience in TestNG or JTiger before the comparison.
Guidelines For Java Framework DevelopersMarch 10th, 2006 I want to propose a simple set of requirements for Java framework authors to help make their framework easily understandable and widely accepted. He also gets all the fame and glory of Java world (wouldn't mind if he mentions my contribution) and in all likelyhood gets free passes to conferences.
The Smell of Java (& JSP) or A Case for JavaJune 29th, 2007 After sometime I am back to developing in Java & JSP. And boy does it smell good! If there is a programmers heaven, I am in it now.
Java, JSP, Servlet, JDBC - Back To The Basics Part 2January 9th, 2006 I informed in my previous post that I have decided to shun all java frameworks for my current project and develop with basic Java / J2SE components instead. Here is a synopsis of my journey as it is unfolding.
Java, JSP, Servlets - Back To The BasicsJanuary 5th, 2006 I haven't taken the decision lightly. After due process and due consideration of all factors I decided I am going to shun all established Java frameworks and go back to basics for my next project.
Leveraging Java in Developing CountriesFebruary 8th, 2006 Java is the No. 1 language on planet earth, high performing and very easy to use.
Update On Super Simple Java ORM Replacement in 80 LinesSeptember 13th, 2006 I have been inundated with emails after my article Java Database Framework (ORM Replacement) in 80 Lines of Code, asking for the source code of the framework or if I could release it as open source. I haven't been yet able to individually reply to all of them, sorry.
Super Simple Java ORM Framework For SQL Happy DevelopersAugust 9th, 2006 I previously mentioned that I intended not to use any Java ORM frameworks. ORM frameworks I have seen so far have a steep learning curve and tend to shoe horn your architecture into their model.
Java Blogger's in IndiaDecember 11th, 2005 I want to create a list of Java blogger's in India or of Indian origin. If you are one please state so with your url in the comment below.
J2SE 5: New wine in new bottle with old corkMarch 15th, 2005 J2SE stands for Java 2 Standard Edition. The 2 stands for version 2 of the platform.
Interesting Quotes From J2EE vs. LAMP vs. NET Faceoff at LinuxWorld 2006April 7th, 2006 Perceived leaders of all three principal open source stacks (LAMP, J2EE and .NET via Mono) on Linux debated the merits of their respective platforms at LinuxWorld 2006 in Boston. My humble annotations are in square bracket.
Back To Java...July 29th, 2008 I am on to create a cool (really really cool) application with Java back-end, distributed processing and all. Expect to see lots of Java tech tips and articles in the coming days.
January 30th, 2006 at 12:42 am
Your joking, are you? Your sarcasm at the tail end of the article gives you away.
Nice post.
February 2nd, 2006 at 3:10 am
Thanks.
February 8th, 2006 at 3:43 am
[...] Licensing fees are a major deterrent in product development in developing countries. As a result piracy is common. However you cannot sell software based upon pirated environment and without appropriate distribution license. The risks are too high. You have to therefore choose free platform like Java. Java comes with plethora of choices for IDE, frameworks (too many of them IMHO) and best of all it runs on all platform, including but not limited to Windows. [...]
May 20th, 2006 at 1:05 pm
Thought you might enjoy this http://discuss.joelonsoftware.com/default.asp?joel.3.219431.12
May 20th, 2006 at 7:57 pm
Wonderful article. BenjiSmith pretty much hit the nail on the head.
July 12th, 2006 at 1:06 pm
How would you program for Java??
Jeff asks you to create a small Java program that loops through an array of toys ordered as a start to the inventory automation project. For now, he says you can use a sample list of possible items. The items you choose for the inventory list are ball, bat, bear, car, doll, game, glove, playstation, and train. In your sample program, keep a tally of the different items. If the item has already been mentioned, just increment that count as opposed to creating a new count for that item. You remember Jeff mentioning that orders for more than 4 items can sometimes cause stock outages. To alert the shipping department of situations where outages might occur, you decide to put an asterisk (*) before any item for which the customer has requested a quantity of 5 or more. At the end, print to the screen a summary of the items and their total count.
Here is a possible structure of your program. This program has a single class named “ToysInventory”. The class has some private attributes and three public methods: countToys, printItems, and main.
Feel free to design your program from scratch.
public class ToysInventory {
// declare counters to keep track of the number of each type of toys
private …
// Toys in our inventory
// declare an array to hold our inventory of toys
private String [] toysInventory = …
// count the number of each type of toys in our inventory.
// This method uses the “length” method on the array to get the number
// of toys in the inventory.
public void countToys () {
…
}
// Print the name of each toy, followed by its count.
// identify toys whose count exceeds five with a “*”.
public void printItems() {
…
}
// This is the main method of the class. It calls the methods of the class to
// perform its job.
public static void main (String [] args) {
// instantiate a class of “toysInventory”, then call its methods:
// countToys and printItems.
ToysInventory collection = new ToysInventory ();
…
}
(Hint: Use myArray.length to determine how long the order input array is. Use System.out.print() to print a portion of an output line, and use System.out.println() to print a line and the carriage return to the next line. Make sure you handle the case where the inventory item description is not among those listed above – such as could happen with a typo or error.)
Here is your order input array: “bear,” “train,” “car,” “ball,” “doll,” “ball,” “train,” “doll,” “game,” “train,” “bear,” “doll,” “train,” “car,” “ball,” “bat,” “glove,” “bat,” “b,” “doll,” “bear,” “ball,” “doll,” “bat,” “car,” “glove,” “train,” “doll,” “bear”
July 13th, 2006 at 11:15 am
can u help?
July 13th, 2006 at 12:15 pm
Sure. Please email me with details using my contact form.
July 21st, 2006 at 6:59 pm
I have the same problems as Mitchell Grow. I was wondering if anyone can help me.
July 21st, 2006 at 7:42 pm
@Alan & Mitchell
Is this some class assignment? Why do you both have the same problem? It appears rather simple. But first I want to know the context and who is Jeff?
December 3rd, 2006 at 1:38 pm
The above java problem seems interesting.I am a beginner in java programming and would mind figuring out how the problem was solved.You can email me the solution thanks a lot.