File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Small help in Code Construct-" Watch "Small help in Code Construct-" New topic

Small help in Code Construct-

typical guy

Joined: Dec 28, 2010
Posts: 1

totalProducts = workdesc.getinput().getProducts().sizeofproductarray();
for (int i = 0; i < Products; i++)
String code = workdesc.getInput().getProducts()

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:
subject: Small help in Code Construct-
It's not a secret anymore!