?? a - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

?? a

Description:

Title: PowerPoint Last modified by: yasushi Created Date: 1/1/1601 12:00:00 AM Document presentation format: – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 12
Provided by: acjp
Category:

less

Transcript and Presenter's Notes

Title: ?? a


1
??????????????(10? 8?)
  • ??a
  • JBuilder??????????
  • ???GUI
  • ?????????
  • ????????

2
Java?????????
  • ????????????(????????)
  • API????????(???????????)

3
????
  • ??????????
  • Java???????????????,Robert Lafore?,??????,\4800
  • Java????????????????, ?????,?????,\2850

4
?????
  • ?????
  • ?????????
  • ??????
  • ?????
  • ??????
  • ???????
  • ??(sort)?API

5
JOptionPane
  • ??
  • showInputDialog(String)
  • ??
  • showMessageDialog(null, String, String, int)
  • JOptionPane.ERROR_MESSAGE
  • JOptionPane.INFORMATION_MESSAGE
  • JOptionPane.WARNING_MESSAGE
  • JOptionPane.QUESTION_MESSAGE
  • JOptionPane.PLAIN_MESSAGE

6
??(????)
  • ??
  • n! n(n-1)21
  • ??? n! n(n-1)!
  • ?????
  • public long factorial (long n)
  • if (n lt 1) return 1
  • else return n factorial(n 1)

7
5!
5!
5! 524 120???
54!
54!
4! 46 24???
43!
43!
3! 32 6???
32!
32!
2! 21 2???
21!
21!
1???
1
1
8
??????
  • 4, 2, 5, 7, 3, 6, 1, 9
  • 4, 2, 5, 7 3, 6, 1, 9
  • 4, 2 5, 7 3, 6 1, 9
  • 4 2 5 7 3 6
    1 9
  • 2, 4 5, 7 3, 6 1, 9
  • 2, 4, 5, 7 1, 3, 6, 9
  • 1, 2, 3, 4, 5, 6, 7, 9

9
?????
  • ?????
  • ????
  • ???????
  • ???????
  • ?????
  • ???????
  • ????
  • ???????
  • ?????
  • ???????
  • ???????
  • ????

10
???????
  • ?????
  • public static void preorder(binaryTree t)
  • if (t ! null)
  • System.out.print( t.node)
  • preorder(t.left)
  • preorder(t.right)

11
??????????
  • ???????????????
  • ??????????????????????????????!
  • ??????????????!
  • ?????!
Write a Comment
User Comments (0)
About PowerShow.com