近日整理电脑发现了不少大学与研究生时期的软件作品,先发布出来了,一是记录一下十年的程序生涯;二是对于有需要的人可以利用之。

先发布一个记事本程序,这个记事本支持HTTP下载内容的显示。

运行截图如下:

源代码如下:

Liunotepad.java

/*记事本的制作:仿Window notepad;作者:my2005lb;时间:2005/2/21;功能:<1>打开文件;<2>保存文件;<3>全选,剪切,复制,粘贴;<4>加入时间,查找,替换;<5>网络HTTP/FTP服务;
*/
import java.awt.*;
import java.awt.event.*;
import java.awt.datatransfer.*;
import java.util.Date;
import java.awt.List.*;
import java.lang.*;
import java.io.*;
import java.net.*;
import javax.swing.*;
//import javax.swing.*;
class mydatetime{//日期mydatetime类String year;String month;String day;String datetime;Date date;String week;mydatetime(){date=new Date();year=this.getyear();month=this.getmonth();day=this.getday();datetime=this.getdatetime();week=this.getWeek();}String getyear(){String temp;int index;index=this.date.toString().lastIndexOf(" ");temp=this.date.toString().substring(index,date.toString().length());return temp;}String getmonth(){String temp;temp=this.date.toString().substring(4,7);if(temp.equals("Feb"))return "2";else if(temp.equals("Apr"))return "4";else if(temp.equals("May"))return "5";else if(temp.equals("Jun"))return "6";   else if(temp.equals("Jul"))return "7";   else if(temp.equals("Aug"))return "8"; else if(temp.equals("Sep"))return "9"; else if(temp.equals("Oct"))return "10"; else if(temp.equals("Nov"))return "11"; else if(temp.equals("Dec"))return "12"; elsereturn temp; }String getday(){String temp;temp=date.toString().substring(8,10);return temp;}String getdatetime(){String temp;temp=date.toString().substring(11,19); return temp;}String getWeek(){String temp=this.date.toString().substring(0,3);if(temp.equals("Mon")){return "星期一";}else if(temp.equals("Tue")){return "星期二";}else if(temp.equals("Wed")){return "星期三";}else if(temp.equals("Thu")){return "星期四";}else if(temp.equals("Fri")){return "星期五";}else if(temp.equals("Sat")){return "星期六";}else if(temp.equals("Sun")){return "星期七";}elsereturn "";}
}
/*class Ftp_Send extends Frame implements ActionListener {FileDialog File_Send_Dialog;Socket File_Send_Socket;Button Send;Button Cancle;Ftp_Send(){File_Send_Dialog=new FileDialog(this,"文件发送选择框",FileDialog.LOAD);File_Send_Socket=new Socket("127.0.0.1",2223);File file=new File(File_Send.getDirectory(),File_Send.getFile());FileOutputStream File_Send=new FileOutputStream(file);}
}*/
class Self_Font extends Frame implements ActionListener,ItemListener{Button Confirmation;Button Cancle;Label Font_Name_Label;Label Font_Style_Label;Label Font_Size_Label;List Font_Name_List;List Font_Style_List;List Font_Size_List;TextArea Example;Liunotepad SelfFont;String Font_Name;int Font_Style;int Font_Size;Self_Font(Liunotepad SelfFont){this.setTitle("字体设置");Confirmation=new Button("确定");Cancle=new Button("取消");Font_Name_Label=new Label("字体");Font_Style_Label=new Label("字形");Font_Size_Label=new Label("字号"); this.Font_Name="Courier";this.Font_Style=Font.BOLD;this.Font_Size=18;Font_Name_List=new List();Font_Style_List=new List();Font_Size_List=new List();this.setBackground(Color.CYAN);Example=new TextArea("文字测试",3,25);Example.setEnabled(false);this.SelfFont=SelfFont;this.setLayout(new FlowLayout());this.add(Font_Name_Label);this.add(Font_Name_List);this.add(Font_Style_Label);this.add(Font_Style_List);this.add(Font_Size_Label);this.add(Font_Size_List);this.add(Example,FlowLayout.LEFT);this.add(Confirmation);this.add(Cancle);/*  Font_Name_Label.setBounds(5,5,25,20);Font_Name_List.setBounds(5,25,40,60);Font_Style_Label.setBounds(25,5,45,20);Font_Style_List.setBounds(25,25,65,60);Font_Size_Label.setBounds(45,5,65,20);Font_Size_List.setBounds(45,25,85,60);Confirmation.setBounds(100,20,120,35);Cancle.setBounds(100,40,120,55);Example.setBounds(5,75,60,120);*/Font_Name_List.add("Courier");Font_Name_List.add("Roman");Font_Name_List.add("隶书");Font_Name_List.add("宋体");Font_Name_List.add("新宋体");Font_Name_List.add("幼圆");Font_Name_List.add("楷体_GB2312");Font_Name_List.add("华文宋体");Font_Name_List.add("仿宋_GB2312");Font_Name_List.add("黑体");Font_Name_List.add("Verdana");Font_Style_List.add("常规");Font_Style_List.add("粗体");Font_Style_List.add("斜体");Font_Style_List.add("粗斜体");Font_Size_List.add("8号");Font_Size_List.add("12号");Font_Size_List.add("20号");Font_Size_List.add("24号");Font_Size_List.add("30号");Font_Size_List.add("40号");this.pack();this.setVisible(true);Font_Name_List.addItemListener(this);Font_Style_List.addItemListener(this);Font_Size_List.addItemListener(this);Confirmation.addActionListener(this);Cancle.addActionListener(this);this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent e){setVisible(false);}});}public void actionPerformed(ActionEvent actionevent){if(actionevent.getSource()==Confirmation){try{this.SelfFont.txt1.setFont(new Font(this.Font_Name,this.Font_Style,this.Font_Size));}catch(Exception exception){}finally{this.setVisible(false);}}else if(actionevent.getSource()==Cancle){this.setVisible(false);}}public void itemStateChanged(ItemEvent e){try{    if(e.getSource()==Font_Name_List){this.Font_Name=this.Font_Name_List.getSelectedItem();this.Example.setFont(new Font(this.Font_Name,this.Font_Style,this.Font_Size));}else if(e.getSource()==Font_Style_List){if(this.Font_Style_List.getSelectedItem().equals("粗体")) this.Font_Style=Font.BOLD;else if(this.Font_Style_List.getSelectedItem().equals("斜体")) this.Font_Style=Font.ITALIC;else if(this.Font_Style_List.getSelectedItem().equals("粗斜体")) this.Font_Style=Font.PLAIN;elsethis.Font_Style=0; this.Example.setFont(new Font(this.Font_Name,this.Font_Style,this.Font_Size));}else if(e.getSource()==Font_Size_List){if(this.Font_Size_List.getSelectedItem().equals("12号"))Font_Size=12;else if(this.Font_Size_List.getSelectedItem().equals("8号"))Font_Size=8;else if(this.Font_Size_List.getSelectedItem().equals("20号"))Font_Size=20;else if(this.Font_Size_List.getSelectedItem().equals("24号"))Font_Size=24;else if(this.Font_Size_List.getSelectedItem().equals("30号"))Font_Size=30;else if(this.Font_Size_List.getSelectedItem().equals("40号"))Font_Size=40;else Font_Size=18;  this.Example.setFont(new Font(this.Font_Name,this.Font_Style,this.Font_Size));}}catch(Exception exception){}    }
}
class Self_Color extends Frame implements ActionListener,ItemListener{List Color_List;Label Color_Label;Button Confirmation;Button Cancle;TextField Example;Liunotepad SelfColor; Color Example_Color;Self_Color(Liunotepad SelfColor){this.SelfColor=SelfColor;this.setTitle("颜色选择");Color_List=new List();Color_Label=new Label("颜色种类");Confirmation=new Button("确定");Cancle=new Button("取消");Example=new TextField("文字测试",7);Example.setEnabled(false);Color_List.add("红色");Color_List.add("黑色");Color_List.add("黄色");Color_List.add("蓝色");Color_List.add("紫色");Color_List.add("绿色");Color_List.add("灰色");this.setLayout(new FlowLayout());this.add(Color_Label);this.add(Color_List);this.add(Example);this.add(Confirmation);this.add(Cancle);this.pack();this.setVisible(true);Confirmation.addActionListener(this);Cancle.addActionListener(this);Color_List.addItemListener(this);this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent e){setVisible(false);}});}public void actionPerformed(ActionEvent actionevent){if(actionevent.getSource()==Confirmation){if(Color_List.getSelectedItem().equals(""))this.Example_Color=Color.BLACK;this.SelfColor.txt1.setForeground(this.Example_Color);this.setVisible(false);}else if(actionevent.getSource()==Cancle){this.setVisible(false);}}public void itemStateChanged(ItemEvent itemevent){if(itemevent.getSource()==Color_List){if(Color_List.getSelectedItem().equals("红色"))this.Example_Color=Color.red;else if(Color_List.getSelectedItem().equals("黑色"))this.Example_Color=Color.black;   else if(Color_List.getSelectedItem().equals("黄色"))this.Example_Color=Color.yellow;else if(Color_List.getSelectedItem().equals("蓝色"))this.Example_Color=Color.blue; else if(Color_List.getSelectedItem().equals("紫色"))this.Example_Color=Color.cyan; else if(Color_List.getSelectedItem().equals("绿色"))this.Example_Color=Color.green; else if(Color_List.getSelectedItem().equals("灰色"))this.Example_Color=Color.gray;     this.Example.setForeground(this.Example_Color);           }}
}
class ChangeInto extends Frame implements ActionListener{Button Change;Button Cancle;TextField first;TextField second;Label First;Label Second;Liunotepad liunotepad;ChangeInto(Liunotepad liunotepad){this.setTitle("替换");Change=new Button("替换");Cancle=new Button("取消");First=new Label("要替换的字");Second=new Label("要替换用的字");this.liunotepad=liunotepad;first=new TextField(20);second=new TextField(20);this.setLayout(new FlowLayout());this.add(First);this.add(first);this.add(Second);this.add(second);this.add(Change);this.add(Cancle);/*First.setBounds(5,5,30,20);first.setBounds(40,5,65,20);Second.setBounds(5,30,30,45);second.setBounds(40,30,65,45);Change.setBounds(15,55,30,65);Cancle.setBounds(40,55,55,70);*/Change.addActionListener(this);Cancle.addActionListener(this);this.setVisible(true);pack();this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowevent){setVisible(false);}});}    public void actionPerformed(ActionEvent actionevent){if(actionevent.getSource()==Change){if(first.getText()!=""&&second.getText()!=""&&!first.getText().equals(second.getText())){try{String str1=first.getText();String str2=second.getText();String temp=this.liunotepad.txt1.getText();this.liunotepad.txt1.setText(temp.replaceAll(str1,str2));}catch(Exception exception){}}this.setVisible(false);}else if(actionevent.getSource()==Cancle){this.setVisible(false);}}
}
class Find extends Frame implements ActionListener{Button Find_String;Button Cancle;TextField Input;Label Tip_Information;Liunotepad liunotepad;Find(Liunotepad liunotepad){Find_String=new Button("查找");this.liunotepad=liunotepad;Cancle=new Button("取消");Input=new TextField(20);Tip_Information=new Label("请输入要查找的信息:");this.setTitle("查找");this.setBackground(Color.BLUE);this.setLayout(new FlowLayout());this.add(Tip_Information);this.add(Input);this.add(Find_String);this.add(Cancle);Find_String.addActionListener(this);Cancle.addActionListener(this);this.pack();this.setVisible(true);this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowevent){setVisible(false);}});}public void actionPerformed(ActionEvent e){if(e.getSource()==Find_String){if(this.Input.getText()!=""){String temp=this.liunotepad.txt1.getText();int code=temp.indexOf(this.Input.getText());System.out.println(code);this.liunotepad.txt1.select(code,code+this.Input.getText().length());System.out.println(code+this.Input.getText().length());}this.setVisible(false);}else if(e.getSource()==Cancle){this.setVisible(false);}}
}
class Tip extends Frame implements ActionListener{Button Confirmation;Button Cancle;Button Ignore;Label Tip_Information;Liunotepad liunotepad;Tip(Liunotepad liunotepad){this.liunotepad=liunotepad;Confirmation=new Button("是");Cancle=new Button("否");Ignore=new Button("不理");Tip_Information=new Label("是否保存");this.setBackground(Color.GREEN);this.setTitle("小提示!");this.setLayout(new FlowLayout());this.add(Tip_Information);this.add(Confirmation);this.add(Cancle);this.add(Ignore);this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowevent){setVisible(false);}});this.pack();this.setVisible(true);Confirmation.addActionListener(this);Cancle.addActionListener(this);Ignore.addActionListener(this);}public void actionPerformed(ActionEvent actionevent){if(actionevent.getSource()==Confirmation){//this.liunotepad.itemsave.getAccessibleContext();}else if(actionevent.getSource()==Cancle){System.exit(0);}else if(actionevent.getSource()==Ignore){this.setVisible(false);}}
}
class cls extends WindowAdapter{//关闭cls类public void windowClosing(WindowEvent e){System.exit(0);}
}
class NetworkServer extends Frame implements ActionListener{//网络服务类NetworkServerButton confirmation;Button cancle;Label  content;TextField receive;String protocol;Liunotepad liunotepad;NetworkServer(String protocol,Liunotepad liunotepad){this.setTitle("网络服务");confirmation=new Button("确定");cancle=new Button("取消");content=new Label("请输入IP地址");receive=new TextField();this.liunotepad=liunotepad;this.protocol=protocol;this.setLayout(new GridLayout());this.add(content);this.add(receive);this.add(confirmation);this.add(cancle);this.pack();this.setVisible(true);confirmation.addActionListener(this);cancle.addActionListener(this);this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowevent){setVisible(false);}});}public void actionPerformed(ActionEvent e){if(e.getSource()==confirmation){try{String s;s=this.protocol;s+=receive.getText();URL url=new URL(s);DataInputStream ds=new DataInputStream(url.openStream());this.liunotepad.txt1.setText("这是"+s+"网址的全部源程序代码\n");while(ds.readLine()!=null){this.liunotepad.txt1.append(ds.readLine()+"\n");}this.setVisible(false);}catch(Exception exception){}  }else if(e.getSource()==cancle){this.setVisible(false);}}
}
class helpindex extends Frame implements ActionListener{Button b;TextArea information;helpindex(){String author;author="作者:my2005lb"+"\n"+"联系地址:XXX"+"\n"+"联系电话:XXX";   this.setLayout(new BorderLayout()); information=new TextArea(author);information.setFont(new Font("Courier",Font.BOLD,18));b=new Button("关闭");    this.setTitle("记事本");this.setBackground(Color.BLUE);this.setSize(100,100);this.add(information,BorderLayout.CENTER);this.add(b,BorderLayout.NORTH);this.information.setEnabled(false);this.pack();this.setVisible(true); b.addActionListener(this);this.addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowevent){setVisible(false);}});}void disvisible(){this.dispose();}public void actionPerformed(ActionEvent ac){if(ac.getSource()==b){this.setVisible(false);disvisible();}}
}
public class Liunotepad extends Frame implements ActionListener,ItemListener
{MenuBar mnub;Menu mnu1,mnu2,mnu3,mnu31,mnu4,network,Ftp;MenuItem item1,item2,item3,item4,item5,item6,item7,item71,item72,item9,itemsave;MenuItem index,content;MenuItem selectalltext,find,changeinto;MenuItem http,ftp,Ftp_Send,Ftp_Receive,Ftp_Login;//MenuItem font_color_y,font_color_r,font_color_b;CheckboxMenuItem item8;MenuShortcut stcte=new MenuShortcut(KeyEvent.VK_E);MenuShortcut stctn=new MenuShortcut(KeyEvent.VK_N);Clipboard clp=null;TextArea txt1;FileDialog open,save;Scrollbar scrollbar;ScrollPane scrollpane;Image First_Image;Liunotepad(){super("记事本");this.setVisible(true);this.setBackground(Color.blue);this.setResizable(true);setLayout(new FlowLayout());scrollpane=new ScrollPane();scrollbar=new Scrollbar();setBounds(10,10,100,60);txt1=new TextArea();this.txt1.setFont(new Font("Courier",Font.BOLD,18));this.scrollpane.add(scrollbar);this.scrollpane.add(txt1);this.scrollpane.setSize(1000,680);mnub=new MenuBar();this.setMenuBar(mnub);open=new FileDialog(this,"打开",FileDialog.LOAD);save=new FileDialog(this,"保存",FileDialog.SAVE);First_Image=this.getIconImage();mnu1=new Menu("文件");mnu2=new Menu("编辑");mnu3=new Menu("插入");mnu31=new Menu("文本框");network=new Menu("网络服务");Ftp=new Menu("FTP服务");http=new MenuItem("HTTP服务");ftp=new MenuItem("FTP连接服务");Ftp_Send=new MenuItem("上载文件");Ftp_Receive=new MenuItem("下载文件");Ftp_Login=new MenuItem("身份登陆");selectalltext=new MenuItem("全选(ctrl+A)",new MenuShortcut(KeyEvent.VK_A)); item1=new MenuItem("新建(New)",stctn);item2=new MenuItem("打开(Open)",new MenuShortcut(KeyEvent.VK_O));itemsave=new MenuItem("保存(Save)",new MenuShortcut(KeyEvent.VK_S));item3=new MenuItem("退出(Exit)");item3.setShortcut(stcte);item4=new MenuItem("复制(Ctrl+C)");item5=new MenuItem("剪切(Ctrl+X)");item6=new MenuItem("粘贴(Ctrl+V)");find=new MenuItem("查找(Ctrl+F)",new MenuShortcut(KeyEvent.VK_F));changeinto=new MenuItem("替换(Ctrl+I)",new MenuShortcut(KeyEvent.VK_I));item71=new MenuItem("字体");item72=new MenuItem("颜色");item8=new CheckboxMenuItem("图片");item9=new MenuItem("时间");mnu4=new Menu("帮助");index=new MenuItem("自我介绍");content=new MenuItem("帮助内容");mnub.add(mnu1);mnub.add(mnu2);mnub.add(mnu3);mnub.add(network);mnub.add(mnu4);mnu3.add(mnu31);mnu1.add(item1);mnu1.addSeparator();mnu1.add(item2);mnu1.addSeparator();mnu1.add(itemsave);mnu1.addSeparator();mnu1.add(item3);mnu2.add(selectalltext);mnu2.addSeparator();mnu2.add(item4);mnu2.addSeparator();mnu2.add(item5);mnu2.addSeparator();mnu2.add(item6);mnu2.addSeparator();mnu2.add(changeinto);mnu2.addSeparator();mnu2.add(find);mnu31.add(item71);mnu31.addSeparator();mnu31.add(item72);mnu3.addSeparator();mnu3.add(item8);mnu3.addSeparator();mnu3.add(item9);network.add(http);network.addSeparator();network.add(Ftp);Ftp.add(ftp);Ftp.addSeparator();Ftp.add(Ftp_Send);Ftp.addSeparator();Ftp.add(Ftp_Receive);Ftp.addSeparator();Ftp.add(Ftp_Login);Ftp.addSeparator();mnu4.add(index);mnu4.addSeparator();mnu4.add(content);add(scrollpane);pack();clp=getToolkit().getSystemClipboard();item1.addActionListener(this);item2.addActionListener(this);item3.addActionListener(this);item4.addActionListener(this);item5.addActionListener(this);item6.addActionListener(this);item71.addActionListener(this);item72.addActionListener(this);item8.addItemListener(this);changeinto.addActionListener(this);find.addActionListener(this);item1.addActionListener(this);selectalltext.addActionListener(this);item9.addActionListener(this);itemsave.addActionListener(this);index.addActionListener(this);content.addActionListener(this);http.addActionListener(this);ftp.addActionListener(this);Ftp_Login.addActionListener(this);Ftp_Send.addActionListener(this);Ftp_Receive.addActionListener(this);addWindowListener(new cls());}public void actionPerformed(ActionEvent e){if(e.getSource()==item1){txt1.setText("");}else if(e.getSource()==item2){String str;this.open.setVisible(true);try{File file=new File(open.getDirectory(),open.getFile());FileReader filereader=new FileReader(file);BufferedReader br=new BufferedReader(filereader);this.txt1.setText("");while((str=br.readLine())!=null){this.txt1.append(str+"\n");}filereader.close();}catch(Exception fe){}}else if(e.getSource()==itemsave){save.setVisible(true);try{File file=new File(save.getDirectory(),save.getFile());FileWriter filewriter=new FileWriter(file);BufferedWriter bw=new BufferedWriter(filewriter);String temp=this.txt1.getText();bw.write(temp,0,temp.length());bw.flush();bw.close();}catch(Exception fge){}}else if(e.getSource()==item3){if(this.txt1.getText()!=""){Tip tip=new Tip(this);}elseSystem.exit(0);}else if(e.getSource()==item4){String str=txt1.getSelectedText();StringSelection txt=new StringSelection(str);clp.setContents(txt,null);  }else if(e.getSource()==item5){String str=txt1.getSelectedText();StringSelection txt=new StringSelection(str);clp.setContents(txt,null);    int start=txt1.getSelectionStart();int end=txt1.getSelectionEnd();txt1.replaceRange("",start,end);  }   else if(e.getSource()==item6){Transferable cnt=clp.getContents(this);DataFlavor flv=DataFlavor.stringFlavor;if(cnt.isDataFlavorSupported(flv))try{String str;str=(String)cnt.getTransferData(flv);txt1.append(str);}catch(Exception ei){}}else if(e.getSource()==selectalltext){this.txt1.selectAll();} else if(e.getSource()==item71){Self_Font myFont=new Self_Font(this);}else if(e.getSource()==Ftp_Send){}else if(e.getSource()==Ftp_Receive){}else if(e.getSource()==Ftp_Login){}else if(e.getSource()==item72){Self_Color mycolor=new Self_Color(this);}      else if(e.getSource()==item9){mydatetime t=new mydatetime();this.txt1.append("\n今年是"+t.year+"年"+t.month+"月"+t.day+"日现在时间 "+t.datetime+" "+t.week);}       else if(e.getSource()==index){helpindex d=new helpindex();}else if(e.getSource()==content){try{Runtime runtime=Runtime.getRuntime();runtime.exec("table.exe");}catch(Exception exception){System.out.println("打开类型出错");}}else if(e.getSource()==changeinto){ChangeInto cot=new ChangeInto(this);}else if(e.getSource()==find){Find _find=new Find(this);}else if(e.getSource()==http){NetworkServer http_net=new NetworkServer("http://",this);//this.txt1.setText(http_net.temp); }else if(e.getSource()==ftp){NetworkServer http_net=new NetworkServer("ftp://",this);//System.out.println("这是HTTP://LOCALHOST");//System.out.println(http_net.temp); //this.txt1.setText(http_net.temp);  }}public void itemStateChanged(ItemEvent e){if(item8.getState()==true){   try{Toolkit toolkit=getToolkit();  Image image=toolkit.getImage("liunotepad.ico");this.setIconImage(image);}catch(Exception exception){System.out.println("找不到图像文件");}}elsethis.setIconImage(First_Image);}public static void main(String args[]){Liunotepad s=new Liunotepad();}
}           

manifest文件

Manifest-Version: 1.0
Main-Class: Liunotepad.class
Create-By: 1.2.2(sun Microsystems Inc.);

Java写的一个记事本工具相关推荐

  1. java编程游戏飞机旋转问题_用JAVA写的一个飞机游戏

    根据网上视频教程,用JAVA写的一个飞机程序.先看效果先: 改程序主要应用了面向对象的方法构建,使用了AWT技术和一些双缓冲技术 关键有几个点: 一.双缓冲技术,防止重画造成的屏幕闪烁,可以直接用 p ...

  2. getconnection java_在MyEclipse用java写的一个GetConnection1.java,用于连接MySQL,却总是出错。(没有财富值了,见谅!)...

    在MyEclipse用java写的一个GetConnection1.java,用于连接MySQL,却总是出错.求救!!!packageJavaBean1;importjava.sql.*;import ...

  3. java qq聊天界面_【附源码】用Java写了一个类QQ界面聊天小项目,可在线聊天!...

    原标题:[附源码]用Java写了一个类QQ界面聊天小项目,可在线聊天! 目录: 1.功能实现 2.模块划分 3.使用到知识 4.部分代码实现 5.运行例图 1.功能实现 1.修改功能(密码.昵称.个性 ...

  4. 闲来无事,用java写了一个魔方小程序。附源码

    闲来无事,用java写了一个魔方小程序.附源码 使用三维数组.相对来说还是简单.呵呵. import java.util.ArrayList; import java.util.List; impor ...

  5. java实现魔方_闲来无事,用java写了一个魔方小程序。附源码 | 学步园

    闲来无事,用java写了一个魔方小程序.附源码 使用三维数组.相对来说还是简单.呵呵. import java.util.ArrayList; import java.util.List; impor ...

  6. Python3 + wxpython写的一个翻译工具

    Python3 + wxpython写的一个翻译工具 学习日语一直有一个问题,有些时候我们看到一句话,可能大致上能猜出来是什么意思,但是日语汉字却不知道怎么去读.我就有这样的烦恼,极大的降低了我对日语 ...

  7. sand java_我在sand用java写了一个读取wifi密码的程序,该方法由主方法调用,运行没问题,效果也正常,...

    我在sand用java写了一个读取wifi密码的程序,该方法由主方法调用,运行没问题,效果也正常,就是无法连续调用,就是如果调用一次就退出然后再运行就可以,如果用完了,再主方法里选择... 我在san ...

  8. 用Java写的一个万年日历

    用Java写的一个万年日历 当我们学过分支结构语句和循环语句后,我们可以简单的完成一个小案例: 通过输入具体的年月日,输出此年此月此日为星期几,并打印此月日历. 说一下我的思路: 首先第一步,先实现输 ...

  9. java中定义一个CloneUtil 工具类

    其实所有的java对象都可以具备克隆能力,只是因为在基础类Object中被设定成了一个保留方法(protected),要想真正拥有克隆的能力, 就需要实现Cloneable接口,重写clone方法.通 ...

最新文章

  1. 译 | 缓存穿透问题导致Facebook史上最严重事故之一
  2. 不用栈的直接二叉树遍历-morris travalsal
  3. C++ Opengl纹理混合源码
  4. 网络教育计算机 判断,北京师范大学网络教育计算机作业1、4、8
  5. [解决] HiveServer2中使用jdbc访问hbase时导致ZooKeeper连接持续增加的解决
  6. Cocos2d-x之绘不规则多边形
  7. xp桌面计算机在哪个文件夹,XP电脑的桌面背景在哪个文件夹?
  8. 怎么用计算机求数值等于log,怎么用计算器上的log?
  9. 在线转换pdf和虚拟打印机生成pdf文件操作攻略
  10. 一顿烤羊腿换来的Golang学习路线
  11. Java Scanner的hasNext()方法
  12. Lua ipairs与pairs的区别
  13. 【Office】Word中的标尺,如何以厘米为单位显示
  14. 世界有哪些古文明拥有自己的独立文字
  15. 【汇编与接口】并行接口总结
  16. MZOJ2007:路灯的改建计划
  17. C# :Winform窗体中文字滚动显示
  18. 类的数据,成员函数,声明
  19. 七牛云如何配置免费 https 阿里云SSL证书
  20. XLOG段文件跳号现象分析

热门文章

  1. app inventor分析
  2. 微信分享显示分享标题及小图标 前端代码
  3. 7-96 计算存款利息
  4. Windows Media Player on Firefox
  5. 极速pdf文件打印时此计算机未连接到网络,PDF文件如何禁止打印?简单六步就能实现!!...
  6. 掌握这3种避税要点,企业轻松应对税局检查
  7. MacOS上安装有多个Java版本,如何卸载?
  8. 维修S120西门子服务器,A5E00158835 6SL3352-1AG37-4DA1 S120 西门子 变频器驱动板
  9. log4j升级到log4j2 spring
  10. Java安全-Tomcat AJP 文件包含漏洞(CVE-2020-1938)幽灵猫漏洞复现