Misc:Extra lectures

From Juneday education
Jump to: navigation, search


Here we'll list slides for extra or "on demand" lectures which don't really fit into a book (not yet at least).

For occasions when we lack material because the students are quicker than we expected. So, bonus lectures so to speak.

Slides and/or Videos


JAR files


Make Java lecture showing: Chat_client in C, JNI and C

XML parsing

Makre pres/video for


Video channel: Java Class and Object loading

Individual videos:

Static vs Non static

Video channel: Java Static vs Non Static

Individual videos:

Data structures

Set and Map.pdf

Strings and IO

Equals vs ==

Video: Explaining equals and ==

Other extra videos can be found in the channel: Java Extra

Ternary operator ? :

Comparable vs Comparator

Note: Other extra videos can be found in the channel: Java Extra

New stuff added to Java 7

Addresses Try-with-resources, multiple catch, Autoclosable, Paths, Files, etc.


Swing moved to chapters in More programming with Java book below


  • ...


Networking (and web)

  • A Java Chat Server And Client 5 pages, TODO: find the chat server and client source code - you'll need it to give this lecture
  • Calling a service from a Java client Slides for a lecture on how to call a Servlet from a command line Java application, get either XML or JSON from the Servlet, and use a factory to get a parser for either XML or JSON, which creates a List<User> from the data. The main method gets the list, loops over it and prints each User to the standard out. 13 pages. (PDF, English)
  • Front-end - Back-end (PDF, English) Huge lecture (83 pages) on Front-ends and back-ends in a web application. Front-ends are HTML and AJAX-based. For back-ends, Servlets are used. The protocols used are HTTP with JSON and AJAX sent from the back-end. The lecture also includes an example with sending data from an HTML form to a servlet to be saved in a database. Creating JSON and XML from the Java back-end is also described in the lecture. 83 pages. Some parts of the lecture is specific to a guest lecture on the SysVP course on UX on Göteborg University. Technologies/key words: AJAX, XML, JavaScript, HTML, Web, Java, Servlet, JDBC, Dynamic content etc
  • ServerBackends in Java Lecture slides for the Server Back-ends in Java lecture. Addresses: HTML form used to query a servlet, CSV as a data type, Java client code accessing a web server (URLConnection etc), JAX-WS/SOAP. 32 pages. (PDF, English) Needs source code and a test-run.
  • Introduction to Servlets (PDF) Servlet workshop slides


  • TODO: Find the webservice with RMI/Soap and add here

Development tips

  • Separation of source code and class files SRC directory (PDF, English)



Video channel: Java Enums

Individual videos:

Static of non-static?

Lecture slides for the Static or non-static lecture. A short repetition for those who have forgotten when to use static and when not to, and what's the difference, anyway? Static or non-static 9 pages (PDF, English)

Java's new Date/Time API


Videos: Git:Introduction (Full playlist) | Git introduction | Git introduction - Live 01 | Live 02 | Live 03 | Using git (PDF)


Emacs basics

Emacs - Basics (Full playlist) | Emacs - Basics - 1 - buffers | Emacs - Basics - 2 - Start pause exit | Emacs - Basics - 3 - Searching | Emacs - Basics - 4 - mark cut paste | Emacs - Basics - 5 - Moving in the buffer | Emacs - Basics - 6 - File management | Emacs - Basics - 6 - Window management


SSH Basics

Ssh - basics (Full playlist) | Ssh - basics - 1 - login, transfer key | Ssh - basics - 2 - using keys, non-interactive


New page: Legal

Open data

  • ...

[Open] standards

  • ...


  • ...


Chat client

Depends on: Networking (and web)




  • Lecture slides for the lecture Minimal introduction to AJAX (12 pages) MinimalIntroductionToAjax.pdf (PDF, English)
  • Lecture slides for the lecture on Ajax with XML for dynamically building an HTML table with student data. 10 pages. Ajax and XML (PDF, English)

Source code for the AJAX-examples can be found here in our github repository java-web.



Code examples for PHP (DISCLAIMER: they all need to be improved but work as proof of concepts, no security etc here!):

  • Upload image (php script acceping a POST with a file, saves it with a new name based on the session, also a shell script to upload a file to the php script)
  • Minimal login example (html form with two options; login or create new account, php scripts for new user and for login check, shell scripts for testing the login.php and also for inserting new users into the database)
  • Small image processing-exempel (imagemagick in bash) for generating thumbnails, creating HTML from a script with a loop


  • ...


  • ...


  • ...


  • ...