public class Cajero {
static String operaciones[][];
static int op,k=0, ret,mont,imp;
static int cuent=747311212;
static int ntar= 421413169;
static Scanner ingDato = new Scanner(System.in);
static int montI=90000,Mtotal, DNI,CLAVE,dep;
static int clave=1234, date;
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
operaciones = new String [5][];
montI+=dep;
System.out.println("3[32m*****************BIENVENIDO AL CAJERO DE TUS AHORROS********************");
System.out.println("");
do{
System.out.println("3[34m INGRESE SU NUMERO DNI");
DNI = ingDato.nextInt();
if(DNI==73232471){
}else{
System.out.println("3[31m DNI MAL INGRESADO ");
}
}while(DNI !=73232471);
do{
System.out.println("3[34m INGRESE LA CLAVE");
CLAVE = ingDato.nextInt();
if(CLAVE==1234){
}else{
System.out.println("3[31m CLAVE MAL INGRESADA");
}
}while(CLAVE !=1234);
System.out.println(" ");
do{
System.out.println("3[32m ***********************************");
System.out.println("3[32m [POR FAVOR INGRESE UNA OPCION] ");
System.out.println("3[32m ***********************************");
System.out.println("3[35m 1. SALDO!!!!");
System.out.println("3[35m 2. DEPÓSITO!!!!");
System.out.println("3[35m 3. RETIRAR!!!!");
System.out.println("3[35m 4. TRANSFERENCIA!!!!");
System.out.println("3[35m 5. MOVIMIENTOS");
System.out.println("3[35m 6. CREAR CUENTA");
System.out.println("3[35m 7. SALIR!!!!!");
System.out.println("3[34m ¿QUE OPERACION VA A REALIZAR? : !!!!!!!!!!");
op = ingDato.nextInt();
switch (op){
case 1:{
operaciones[k]= op;
int n = 0;
System.out.println("3[35m 1. SALDO |ES MOMENTO DE VER SU SALDO");
SALDO(n);
k++;
System.out.println("");
}break;
case 2:{
operaciones[k]= op;
System.out.println("3[35m 2. DEPÓSITO |DEPOSITE CON TODA CONFIANZA");
int m = 0;
DEPOSITO(m);
k++;
}break;
case 3:{
operaciones[k]= op;
System.out.println("3[35m 3. RETIRAR |RECUERDE GASTAR CON SUS AMIGOS |RETIRE POR ADELANTADO");
RETIRAR();
k++;
}break;
case 4:{
operaciones[k]= op;
System.out.println("3[35m 4. TRASFERENCIA |TRASNFIERA A SUS AMIGOS |NO SEA TACAÑO");
TRANSFERENCIA();
k++;
}break;
case 5:{
int j = 0;
operaciones[k]= op;
System.out.println("3[35m 5. MOVIMIENTOS |VEA LAS ACTIVIDADES REALIZADAS");
MOVIMIENTOS(j);
}break;
case 6:{
System.out.println("3[35m 6. CREE SU CUENTA GRATIS ");
CUENTA();
}break;
default:{
System.out.println("3[31m OPCION MAL INGRESADA!!!!!");
}
System.out.println("");
}
}while(op !=7);
}
For now my movements are within a one-dimensional arrangement but I want my movements and the date and time to be within the bidimensional arrangement