Praful Thakare wrote:also, is there any pattern for the failed date/time? you mentioned it fails 3 times a year, what is that time?
have you considered it could be concurrency issue?
Lachlan Hope wrote:
public class myclass1 {
private myobject mo
where 'myobject' is an object of a type defined in a different class.
within this class there are two methods.
The first actually creates the objects:
void method1(){
myobject mo = new myobject();
}
Then the second needs to update these objects, so:
void method2(){
mo.setvariable1("randomstring");
}
Also
you have used -- myobject mo = new myobject();
after private myobject mo
so no need of reassigning mo to type myobject
you can directly use mo = new myobject();
J Winton wrote:Is it because the switch wont work with a float and only an int?
A switch works with the byte, short, char, and int primitive data types. It also works with enumerated types (discussed in Classes and Inheritance) and a few special classes that "wrap" certain primitive types: Character, Byte, Short, and Integer (discussed in Simple Data Objects ).