|
-
July 7th, 2005, 01:28 AM
#1
and statement for a for loop
hi there , how do i include a and condition for a for loop
i am wanting to extract out "uyt" and "HostingClientMNC"
but it returns me "java.lang.IndexOutOfBoundsException: Index: 13, Size: 12" error
Code:
arr.add("ns1:ClassificationNode");
arr.add("uyt");
arr.add("lid=urn:oasis:names:tc:ebxml-regrep:SubjectRole:uyt");
arr.add("objectType=urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ClassificationNode");
arr.add("status=urn:oasis:names:tc:ebxml-regrep:StatusType:Submitted");
arr.add("id=urn:oasis:names:tc:ebxml-regrep:SubjectRole:uyt");
arr.add("ns1:ClassificationNode");
arr.add("HostingClientMNC");
arr.add("lid=urn:oasis:names:tc:ebxml-regrep:SubjectRole:HostingClientMNC");
arr.add("objectType=urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ClassificationNode");
arr.add("status=urn:oasis:names:tc:ebxml-regrep:StatusType:Submitted");
arr.add("id=urn:oasis:names:tc:ebxml-regrep:SubjectRole:HostingClientMNC");
for ( int i = 1; i <= arr.size();)
{
i++;
i++;
i++;
i++;
i++;
i++;
i++;
i++;
System.out.println(arr.get(i));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|