Perhaps you should try one of these... http://www.google.de/#q=java%20beginners%20tutorial before using this mailing list.
-----Original Message----- From: learning coding [mailto:[email protected]] Sent: Dienstag, 10. Januar 2012 12:18 To: [email protected] Subject: difficulty in copying the name of childFolders in an array Hi *I have a problem in copying the data in array from object variable which is also a type String.* Please explain ** *int* k =1; *String[] childRoot = **null; * *while*(o.getName().equalsIgnoreCase(root[k])){ *for* (CmisObject d : ((Folder) o).getChildren()) { System.*out*.println(" Name " + d.getName()); childRoot[k]=d.getName(); // line no 248 } *output* Name try 1 java.lang.NullPointerException at 248 *Please explain why this is throwing nullPointer Exception though i am able to print the same String.* ** *Thank you* ** ** *Regards*
