View Single Post
  #6 (permalink)  
Old 04-23-2008, 04:11 PM
sanjeevtarar's Avatar
sanjeevtarar sanjeevtarar is offline
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 251
sanjeevtarar is on a distinguished road
hello zebra,

As you have told that you are fresher, then my advise is to read some core java fundamentals books and do some research on programs . If you do something at your own then you will learn more. and one more thing do more and more practice on core java. CORE JAVA IS THE TOUGHEST part in Java language, Once you grab good knowledge on core part you will not get difficulty on other parts like servlets,jsp etc.

well for now i think you require this.

Code:
class OneDimensionArray { public static void main(String args[]) { // Declare and allocate space int myarray[] = new int[]{33,71,-16,45}; // Initialize elements // Display length System.out.println("myarray.length = " + myarray.length); // Display elements for (int i=0;i<myarray.length;i++ ){ System.out.println(myarray[i]); } } }
__________________
sanjeev,संजीव
Reply With Quote