摘要:
File f = new File(path);FileReader fr = new FileReader(f);BufferedReader br = new BufferedReader(fr);String s;try{s = br.readLine();while (s != null){s += s;text.setText(new String(s));System.out.println(s);s = br.readLine();//这行怎么读取不到内容???}//text.setText(new String(s));} catch (IOException e){Syste 阅读全文
摘要:
package guiGame;import javax.swing.JFrame;import javax.swing.SwingUtilities;public class GameMain{/** * @param args * 连连看游戏,Java版 */public static void main(String[] args){//Game game = new Game();//game.show();SwingUtilities.invokeLater(new Runnable(){@Overridepublic void run(){Game game = new Game( 阅读全文