要求都不清楚,而且这种事应该自己做才对

解决方案 »

  1.   

    请帮我加上数组和文件。谢谢
    import java.io.*;
    import javax.swing.*;
       public class Tutor3_8{
       public static void main(String args[])
         {
            readMyFile();
                         
              }
       public static void readMyFile(){
          String record = null;
          int recCount = 0;
          try{
              FileReader fr = new FileReader("chen.txt");
              BufferedReader br = new BufferedReader(fr);
              record = new String();
              while((record = br.readLine())!=null){
                    recCount++;
                    System.out.println(recCount+":"+record);
              }
                br.close();
                fr.close();
              }catch(IOException e){
                 System.out.println("Uh oh,got an IOException error!");
                      }
                   }
               
         String username,
                password;               
         username = JOptionPane.showInputDialog("Enter username by user");
         password = JOptionPane.showInputDialog("Enter password by user");
            if((compareTo password = 0 && 123456 = 0)&&(compareTo username = 0 && 陈达旺 = 0)){
                for(int i;i<3;i++){
                  JOptionPane.showMessageDialog(null,"Password isn't right!try again");
                      }
              }
               while(ture){
                       switch{
                              case draw;
                                   doDraw;
                                   break;
                              case deposit;
                                   doDeposit;
                                   break;
                              case query;
                                   doQuery;
                                   break;
                              case quit;
                                   break;
                        }
                  }
           }
                         public static void doDraw(String user){
                              String Drawer;
                                     Drawer = JOptionPane.showInputDialog("Enter username");
                              Int draw = Integer.parseInt(Drawer);
                        public static void  deposit(String user){
                              String Depositor;
                                     Depositor = JOption.showInputDialog("Enter username");
                              Int deposit = Integer.parseInt(Depositor);
                        public static void doQuery(String user){
                              String Queryor;
                                     Queryor = JOption.showIntputDialog("Enter username");
                              Int query = Integer.parseInt(Queryor);
                     }
                }
            }
        } 
               
                                           
      

  2.   

    该程序是写了银行的操作。我的程序缺少了数组请帮忙吧!!!真的很急啊!!!!!!很急啊
      

  3.   

    缺少什么数组,是程序有问题吗
      

  4.   

    把大概情况说一下,数组是做何用