CLASE PRINCIPAL
package newpackagecuent_ahorr;
import java.io.*;
public class principal
{
public static InputStreamReader leer = new InputStreamReader(System.in);
public static BufferedReader teclado = new BufferedReader(leer);
public static void main(String[] args)throws IOException
{
System.out.println("ingrese nombre");
String nombre=teclado.readLine();
System.out.println("ingrese N_cedula");
int N_cedula=Integer.parseInt(teclado.readLine());
cuent_ahorr Obj1= new cuent_ahorr();
System.out.println("ingrese deposito");
int de=Integer.parseInt(teclado.readLine());
System.out.println("ingrese retiro");
int re=Integer.parseInt(teclado.readLine());
Obj1.deposito(de+100);
//Obj1.ver_saldo();
Obj1.retiro(re);
//Obj1.ver_saldo();
}
}

No hay comentarios:
Publicar un comentario