• Fundamentals of computing 1 - Lecture title: Inner classFundamentals of computing 1 - Lecture title: Inner class

    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 ...

    ppt15 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 887 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: Graphic user interface (gui)Fundamentals of computing 1 - Lecture title: Graphic user interface (gui)

    JOptionPane Graphic User Interface (GUI) Jframe Event-Driven Programming Layout Manager Components Mouse events Keyboard events 2D Graphics Animation with Timers

    ppt119 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 936 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: File processingFundamentals of computing 1 - Lecture title: File processing

    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...

    ppt44 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 884 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: Exception handlingFundamentals of computing 1 - Lecture title: Exception handling

    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

    ppt71 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1008 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: EncapsulationFundamentals of computing 1 - Lecture title: Encapsulation

    Java Access Modifier Encapsulation static keyword final keyword

    ppt34 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 996 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: Abstract class and interfaceFundamentals of computing 1 - Lecture title: Abstract class and interface

    Create an class RankingStudent that: Initiate an array of 10 Students Using method sort of ArrayList class to sort the Student

    ppt27 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 948 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: InheritanceFundamentals of computing 1 - Lecture title: Inheritance

    Inheritance (Is a) Method Overriding super keyword Runtime polymorphism Aggregation (Has a)

    ppt41 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 953 | Lượt tải: 0

  • Fundamentals of Computing 1 - Lecture Title: Objects and ClassesFundamentals of Computing 1 - Lecture Title: Objects and Classes

    Java OOPs Concepts Objects and Classes Method Overloading Constructor this keyword

    ppt74 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 907 | Lượt tải: 0

  • Fundamentals of computing 1 - Lecture title: StringsFundamentals of computing 1 - Lecture title: Strings

    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 ...

    ppt79 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 935 | Lượt tải: 0

  • Fundamentals of Computing 1 - Lecture Title: ArraysFundamentals of Computing 1 - Lecture Title: Arrays

    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.

    ppt59 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 878 | Lượt tải: 0