QUOTE(saito_dynasty @ 13 Oct, 2008 - 02:12 AM)

How Can I Make Java Store Data..
Data Will Be Store As Long The Program Are Running...
It Also Can Be Display...
And Delete...
Software : JCreator LE4.50
Rather broad question indeed, however i will touch on it
Say you want to store your age... in a program and your name you can do that by declaring variables...
java
int age = 20;
String name = "bbq";
you can then display them also using print statements
java
System.out.println("Name : " + name);
System.out.println("Age : " + age);
Program
java
class Test
{
String name = "bbq";
int age = 20;
public static void main(String[] args)
{
System.out.println("Name : " + name);
System.out.println("Age : " + age);
}
}
they will be stored till the program no longer needs them (cannot access them).. then i believe the java garabage collector will free them up... Is that what you are after ?
Check out some tutorials on variables...
This post has been edited by bbq: 13 Oct, 2008 - 01:33 AM