博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月31日

摘要: import java.awt.BorderLayout;import java.awt.CardLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;class MyPanel extends JPanel { MyPanel(int n) { add(new JLabel(" "+n+" ")); }}class MainFrame extends JFrame implements ActionListe. 阅读全文

posted @ 2012-07-31 14:36 紫冰龙 阅读(165) 评论(0) 推荐(0) 编辑

摘要: //找出两个字符串中最长的相同子字符串public class Stringdemo { public static void main(String[] args) { String str1 = new String("eeabcde"); String str2 = new String("bcdefabcabcdedegg"); by... 阅读全文

posted @ 2012-07-31 12:22 紫冰龙 阅读(2080) 评论(0) 推荐(0) 编辑