aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Small help in Code Construct- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Small help in Code Construct-" Watch "Small help in Code Construct-" New topic
Author

Small help in Code Construct-

typical guy
Greenhorn

Joined: Dec 28, 2010
Posts: 1
if(IsProduct)
{

totalProducts = workdesc.getinput().getProducts().sizeofproductarray();
for (int i = 0; i < Products; i++)
{
String code = workdesc.getInput().getProducts()
.getproductArray(i).getStringValue();
Product.add(code.toUpperCase());
}
}
else
{
Product.add(Constants.DEFAULT);
}

If the input coming from the workdesc is of type product is Empty we assigned it to be default from constants(Utils).

As same i have a constant called "EVERYTHING"... I need to enhance the code... the way that

If -elseif-else kind of structure.... where elseif---DEFAULT.......elseif--Everything.....else( throw an exception).

can someone construct the code... Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Small help in Code Construct-