User Profile
Collapse
-
When inserting data is where the issue is. Soon after server restart the system is flying but slows down as time progresses, I am beginning to suspect memory leaks. -
there are no major changes except for a few display JSPs that have been addedLeave a comment:
-
Perfomance issues in J2EE Applications
I am running a J2EE application(dev eloped with Rational Application Developer v7 JDK 1.5) with DB2 9. When reading data from the database there are no problems but when it comes to setting data into the database it is very slow. This issue has not been there for the past 3 months but its now cropping up now. What could be the cause of this? -
storing java float/double as a string
I want to store a float/double as String. I have an input file with a column with float values i.e. have the form 1.4E15. I want to store these values as Strings. Here is my code which is resulting in storing 1.4E15 not the value as a String.
[code=java]
String accNumber="";//declaring and initialisation
//open file and read line then store the column in accNumber
//the line read has been... -
How to test if a particular String is a double
I need to validate a string before I use the Double.parseDou ble() method to assign a value in the code below.
[HTML]Code: Java
String s="";//s can be a string read from the keyboard
//double validation
double w=Double.parseD ouble(s); [/HTML] -
passing an Iterator from a Utility class to a JSP
I want to pass my Iterator to a JSP in the following code
code: Java
public class PolicyUpdateUti ls {
public static void UpdatePolicyInc reases(){
PolicyLocalHome ppH = (PolicyLocalHom e)Utils.getBean Home("Policy");
PolicyLocal policyL = null;
IncreasesLocalH ome incH = (IncreasesLocal Home)Utils.getB eanHome("Increa ses");
IncreasesLocal incL = null;
... -
variable values in loops
//Define Iterator iter
String policyPath = "";
while (iter.hasNext() )
{
deductionL = (DeductionsLoca l) iter.next();
String policyID = deductionL.getP olicyID();
policyL = policyH.findByP rimaryKey(polic yID);
if(policyL.getS tatus().equalsI gnoreCase("READ Y TO GO INTO FORCE")||policy L.getStatus().e qualsIgnoreCase ("IN FORCE"))
policyPath... -
thank you I have done so. i have a small issue now. the following code segment is producing a wrong date on the year.
code: java
int year = cal.get(Calenda r.YEAR);
int month = cal.get(Calenda r.MONTH);
int day = cal.get(Calenda r.DAY_OF_MONTH) ;
....
I am setting the date as below:
preqL.setReceip tDate(new java.sql.Date(y ear,month,day)) ;//preqL...Leave a comment:
-
java.sql.Date
How can I set the current date in the format 2007-06-06 for java.sql.Date? -
displaying 2-dimensional arrays in JSPs
NB: All code given is Java code
I have declared my variable as follows:
String [][] agent = new String[][];
I have populated the array successfully.
I now want to print the contents of my array side by side as agent[0][0] to give me an output like: Eddy 0.8 where Eddy is in the row and 0.8 is in the column.
Thank you guys! -
-
initialisation
why is the following an illegal initialisation
java code:
String s[];
s = {"mmmmm","jjjjj j","nnnn"} -
testing for null in a single dimensional array
how do we test for null values in single dimensional string array? -
size() method of the Collection class
how do i use the size() method to get the number of elements in a collection?
No activity results to display
Show More
Leave a comment: