I require assistance on a college project in Java. This is the situation. A webpage has already been designed which consists of a dropdownlistbox that displays 100 Intervention Codes & Names along with two textboxes where the user can input two different values namely P & F. There are 25 different users that enter intervention related data. Each individual user is given a login & pwd with which he/she can login and input the values. Not all interventions are mandatory for each user. A report shall be generated using java code. It should contain intervention code, intervention name, p & f. If say for example, the user enters the data in July, the report should display P & F of upto May in the first column, then P & F of June in the second column and the sum of first & second columns in the third one. If the user doesn't input a value for any intervention, 0 shall be displayed. Please advise how to code. Thanks.
I want the last three lines to be looped but when I do so, System.out.println(a_code2[j]); System.out.println(phy2[j]); System.out.println(fin2[j]); are getting looped which is unwanted. Looking for improvements from the forum. Thanks.
I'm not quite sure what you are asking, but the problem may be that you are using != to compare two Strings. You should be using String.equals() method. i.e.
Does that help ?
If not, can you show us an example of what output you are expecting. [ July 19, 2006: Message edited by: Joanne Neal ]
Joined: Jul 18, 2006
Joanne, thanks very much for responding to my question. This is the desired output. Values other than 0 must be taken at run time in the corresponding fields as mentioned earlier. I am anticipating an optimal solution in Java.
<td colspan=2 align=center><b>up to the end of<br>previous month<b></td> <td colspan=2 align=center><b>During the <br>month<b></td> <td colspan=2 align=center><b>Cumulative<br>during the<br>Financial year<b></td>
Originally posted by R Mannam: Joanne, thanks very much for responding to my question. This is the desired output. Values other than 0 must be taken at run time in the corresponding fields as mentioned earlier. I am anticipating an optimal solution in Java.