not sure exactly what you want..your post is very vague
crystal object? what is that?
- initialize the report
only you know how to do that..you don't explain what a Crystal object is.
- run it
again, you're the only one who know about the business process of running the Crystal object
-save it
how do you want to save the object? by XML, object? text?
- schedule it to run everyday
look at the Timer and Timetask class, using a timer, you can specified when the program (init, run, save) should perform its task.
unless you give a little more detail, you're not going to get much help from here.
> I have to create a java program that initialise a
> crystal object,
There are essential 3 method of initialising an object.
1) Static initialisation.
2) Initiasation via the objects constructor.
3) Using a setter function.
e.g.
public class Crystal {
private static String string = "Value" ; // method 1
private int integer = 0 ;
public Crystal() {
}
// method 2
public Crystal(int value) {
this.integer = value ;
}
// method 3
public void setInteger(int value) {
this.integer = value ;
}
public static void main(String[] args) {
Crystal crystal = new Crystal() ;
crystal.setInteger( 99 ) ;
Crystal crystal_2 = new Crystal( 99 ) ;
}
}
This following tutorial will answer your remaining questions.
http://java.sun.com/learning/new2java/index.html