急需大哥们帮忙 要求都不清楚,而且这种事应该自己做才对 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 请帮我加上数组和文件。谢谢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); } } } } 该程序是写了银行的操作。我的程序缺少了数组请帮忙吧!!!真的很急啊!!!!!!很急啊 缺少什么数组,是程序有问题吗 把大概情况说一下,数组是做何用 循环命名对象 <!--.*?--> 正则表达式 jsp页面上活动行的内容获取 java可拖动组件连接线问题 对象数组的比较 是IT人都应该看的(外包) ~~~在线等待 如何实现自由拖动JButton .........为什么总是出现"cannot resolve symbol"?? java初学者,请大虾帮忙,谢 数据指针问题 新手的疑惑(再现等待) 数据库处理问题
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);
}
}
}
}