Welcome to Gaia! :: View User's Journal | Gaia Journals

 
 

View User's Journal

Alrischa's Chronicles
Taking Java Course
Java course...

import javax.swing.*;
import java.io.*;
public class grava1
{
String nome;
public void ler()
{
nome=JOptionPane.showInputDialog(null, "nome:" wink ;
}
PrintWriter p;
public void grava()
{
try
{
p=new PrintWriter(new FileWriter("c:/aula.txt" wink );
p.print(nome+"n" wink ;
p.close();
}
catch(Exception e)
{
}
}
public static void main (String args[])
{
grava1 x=new grava1();
x.ler();
x.grava();
System.exit (0);
}
}





 
 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum