This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Small help in Code Construct-
 
It's not a secret anymore!