Structured and modular programming
Fundamentals (UF4)
- Test -> Hello world, based on JAVA SE 7 Programming I.pdf (p. 42). Compile with: javac Prova.java It will create Prova.class. To run it, we'll run: java Prova
- Alumne_00 -> Creation of a class with public attributes. Creating an alumne1 object of type Alumne, assigning a name will display it.
- Alumne_01 -> Added a few words ("El nom es") plus the variable on the same line.
- Alumne_02 -> Another way to instantiate the object.
- Alumne_03 -> Setting the attributes as private, we create methods to access the name and apply them to the program.
- Alumne_04 -> We use the same method for the grade.
- Alumne_05 -> Limits the maximum grade to 10 in the method, and the minimum to 0. Not yet applicable to the program.
- Alumne_06 -> Displays the name and grade of two students.
- Alumne_07 -> Displays the name in uppercase and the grade of the students.
- Alumne_08 -> Entering a name and a grade, displays them and displays the second object declared previously.
- Alumne_09 -> Entering both names and both grades finally displays them on screen.
- Notes used (up to p. 52)
- Notes used (from p. 52 to 64)
- Activity01 --> Given a sentence, you can see the repetition of characters in it.
- Activity02 --> Given a sentence, it counts the occurrences for you.
- Notes used (from p. 64 to 90)
- Inheritance
- Polymorphism.
- Inheritance in constructors.
- Double Casting.
- Ex 3,5,6 (proposed...)
- Notes used (from p. 91 to 100)
- Java SE 7 Programming (p. 105 - 142)
- To know if a class belongs to another, instanceof will be used.
- ArrayList:
- Add to add
- get to retrieve
- remove to delete.
There are deferred classes that are always abstract.
2015-10-29
- Advanced Class Design. (p. 135 - 161)
- P. 159 --> Enums.
2015-11-05
- Multiple inheritance.
Fundamental class libraries (UF5)
- Notes. (211-234).
- Notes Sergi.
- Application of storage structures in object-oriented programming.
- Collections in the JDK (Java Development Kit).
- Set interface.
- List interfaceMap interface.
- Creating a custom generic class
- Generic methods
- Inheritance and wildcard types
XML (Extensible Markup Language)
- SAX-type reading.
- XML node reading (DOM)
- Creating an XML document
Examples from the summaries.
Introduction to DB persistence (UF6)
- What are they?
- Structure
- Functional interfaces