Tổng hợp tài liệu, ebook Công Nghệ Thông Tin tham khảo.
Anonymous inner classes (anonymous classes) are probably the strangest feature of the Java programming language. An anonymous class is a class that’s defined on the spot, right at the point where you want to instantiate it. Because you code the body of the class right where you need it, you don’t have to give it a name. That’s why it’s called an ...
15 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 887 | Lượt tải: 0
JOptionPane Graphic User Interface (GUI) Jframe Event-Driven Programming Layout Manager Components Mouse events Keyboard events 2D Graphics Animation with Timers
119 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 936 | Lượt tải: 0
Modify our previous Hours program to use a PrintStream to send its output to the file hours_out.txt. The program will produce no console output. But the file hours_out.txt will be created with the text: Kim (ID#123) worked 31.4 hours (7.85 hours/day) Eric (ID#456) worked 36.8 hours (7.36 hours/day) Stef (ID#789) worked 39.5 hours (7.9 hours...
44 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 884 | Lượt tải: 0
Errors Exception Handing in Java try – catch block Multiple catch block Nested try statements Finally block Throw keyword Throws keyword Exception Handling in Method Overriding Custom Exception
71 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1008 | Lượt tải: 0
Java Access Modifier Encapsulation static keyword final keyword
34 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 996 | Lượt tải: 0
Create an class RankingStudent that: Initiate an array of 10 Students Using method sort of ArrayList class to sort the Student
27 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 948 | Lượt tải: 0
Inheritance (Is a) Method Overriding super keyword Runtime polymorphism Aggregation (Has a)
41 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 953 | Lượt tải: 0
Java OOPs Concepts Objects and Classes Method Overloading Constructor this keyword
74 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 907 | Lượt tải: 0
If you want to represent any object as a string, toString() method comes into existence. The toString() method returns the string representation of the object. If you print any object, java compiler internally invokes the toString() method on the object. So overriding the toString() method, returns the desired output, it can be the state of an ...
79 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 935 | Lượt tải: 0
We need each input value twice: to compute the average (a cumulative sum) to count how many were above average We could read each value into a variable. but we: don't know how many days are needed until the program runs don't know how many variables to declare We need a way to declare many variables in one step.
59 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 878 | Lượt tải: 0