Structured and modular programming

Java (Oracle) Installation

Fundamentals (UF4)

2015-09-25

2015-10-01

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

2015-10-02

  • Activity01 --> Given a sentence, you can see the repetition of characters in it.
  • Activity02 --> Given a sentence, it counts the occurrences for you.

2015-10-08

  • Inheritance

2015-10-09

2015-10-15

  • Polymorphism.
  • Inheritance in constructors.
  • Double Casting.
  • Ex 3,5,6 (proposed...)

2015-10-16

2015-10-22

  • 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-25

2015-10-29

  • Advanced Class Design. (p. 135 - 161)
  • P. 159 --> Enums.

2015-11-05

  • Multiple inheritance.

Practice.

Fundamental class libraries (UF5)

2015-12-03

File management.

Exercises.

Collections:

  • Application of storage structures in object-oriented programming.
  • Collections in the JDK (Java Development Kit).
  • Set interface.
  • List interfaceMap interface.

Generic classes:

  • 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

File reading and writing.

Examples from the summaries.

Introduction to DB persistence (UF6)

Exercises and exam.

Lambdas:

  • What are they?
  • Structure
  • Functional interfaces

http://probeta.net/moodle/course/view.php?id=36