Munz – IT/TG - Lörrach. Goals of this intensive lecture To learn: To learn: –What does it means programming in Java ? –What is JAVA good/bad for ? –Which.

Slides:



Advertisements
Ähnliche Präsentationen
Weihnachten (Christmas)
Advertisements

R. Zankl – Ch. Oelschlegel – M. Schüler – M. Karg – H. Obermayer R. Gottanka – F. Rösch – P. Keidler – A. Spangler th Expert Meeting Business.
The difference between kein and nicht.
Fakultät für informatik informatik 12 technische universität dortmund Specifications Peter Marwedel TU Dortmund, Informatik 12 Graphics: © Alexandra Nolte,
Peter Marwedel TU Dortmund, Informatik 12
Subjects and Direct Objects When to use der vs. den.
Telling Time in German Deutsch 1 Part 1 Time in German There are two ways to tell time in German. There are two ways to tell time in German. Standard.
Lancing: What is the future? Lutz Heinemann Profil Institute for Clinical Research, San Diego, US Profil Institut für Stoffwechselforschung, Neuss Science.
Comparative Adjectives. The term comparison of adjectives is used when two or more persons or things have the same quality (height, size, color, any characteristic)
Haben – to have ich habe du hast er/sie hat es hat man hat wir haben
Kapitel 1 Komm mit! Level I erste Stufe.
Adjektive Endungen von Frau Templeton.
Zu + Infinitiv : eine Erklärung
Question words and word order By the end of this lesson you will have revised question words By the end of this lesson you will be able to use question.
Laurie Clarcq The purpose of language, used in communication, is to create a picture in the mind and/or the heart of another.
How many more nouns can you think of?
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
Plural Forms of Nouns & Wie viel? or Wie viele?
Morphology and Syntax More on sentence structure.
Reflexive Verbs.
Deutsch 1 G Stunde. Dienstag, der 11. September 2012 Deutsch 1 (G Stunde)Heute ist ein E - Tag Unit: Introduction to German & Germany Objectives: Learn.
Christoph Durt: Wittgenstein on the possibility of philosophy: The importance of an intercultural approach
Deutsch 1 G Stunde. Montag, der 10. September 2012 Deutsch 1 (G Stunde)Heute ist ein D - Tag Unit: Introduction to German & Germany Objectives: Introducing.
Meine Schulfächer.
Wortschatz angenehm comfortable anstrengend tiring ausgezeichnet outstanding bequem comfortable berühmt famous besser better blöd stupid einfach easy fantastisch.
IL – los deberes We are going to do a speaking test next week.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
Department of Computer Science Homepage HTML Preprocessor Perl Database Revision Control System © 1998, Leonhard Jaschke, Institut für Wissenschaftliches.
Wortschatz der Schulhof the playground die Aula the hall
INTAKT- Interkulturelle Berufsfelderkundungen als ausbildungsbezogene Lerneinheiten in berufsqualifizierenden Auslandspraktika DE/10/LLP-LdV/TOI/
Learning Target / Lernziel: 1.Hausaufgabenkontrolle (Vok 1-1) 2.Kultur 3.Forming questions Heute ist Dienstag, der 3. September 2013 Hausaufgaben GH #1,#2.
Guten Morgen!.
Verben Wiederholung Deutsch III Notizen.
Kölner Karneval By Logan Mack
Stem Changing Verbs D1K7.
Ein Projekt des Technischen Jugendfreizeit- und Bildungsvereins (tjfbv) e.V. kommunizieren.de Blended Learning for people with disabilities.
“Weil” und “Denn”.
Image Processing and Analysis Introduction. How do we see things ?
Perspektiven – “Perspectives” – Herr Wallace
The most obvious or direct use of auch is to mean also. Ich möchte auch Gitarre lernen. Auch ich möchte Gitarre lernen. I would like to learn Guitar. Someone.
Ein Herz besteht aus vielen Räumen, A heart consist of many rooms, Manche groß, Andere klein, Many big, others small, aber das soll nicht heißen, dass.
Nouns. What is a noun O A noun is the name of a person, O place, O animal O or thing.
Design Patterns Ein Muster (pattern) ist eine Idee, die sich in einem praktischen Kontext als nützlich erwiesen hat und dies auch in anderen sein wird.
Talking about yourself
Gestern hat mich ein Regentropfen getroffen Yesterday a rain drop met me. ;) und gab meinem Kopf einen nassen Kuss. And gave my head a wet kiss. Ohne Warnung,
In German, certain adjectives are often used with certain prepositions. In such cases, dative prepositions will take dative objects, accusative prepositions.
Heute ist Montag, der 17. September 2012: Lernziel: 1.Diskussion: Sprechen 2.Wie kommst du zur Schule? 3.Leseverständnis (Reading Comprehension) 4.Quiz.
Can you tell me about your school?
Adjectiv Endungen Lite: Adjective following articles and pre-ceeding nouns. Colors and Clothes.
German Word Order explained!
Talking about actions use the arrow keys or mouse to advance.
Nur noch kurz die Welt retten Tim Bendzko
Present Tense Most regular verbs follow this pattern:
Separable Verbs Turn to page R22 in your German One Book R22 is in the back of the book There are examples at the top of the page.
THE PERFECT TENSE IN GERMAN
Adjective Endings Nominative & Accusative Cases describing auf deutsch The information contained in this document may not be duplicated or distributed.
Technische Universität München 1 CADUI' June FUNDP Namur G B I The FUSE-System: an Integrated User Interface Design Environment Frank Lonczewski.
Mann gegen Man Man / Husband One Mann = man =
By Martin L. Loeffler.  The basic sentence has a subject and a verb.  The subject and verb need to be together.  The subject and verb need to agree.
THE CONVERSATIONAL PAST
Your next assignment is not a test but rather an essay. In order to help you write this essay, we are going to discuss the parts of an essay in German.
1.Usage/Purpose 2.Forms Present Tense Simple Past Tense 2.Meanings 3.Word Order/Placement modal + infinitive omission of infinitives 4. Saying what you.
 Every part in a sentence has a grammatical function. Some common functions are: - Subject - Verb - Direct object / accusative object - Indirect object.
Imperfekt (Simple Past) Irregular or strong verbs
Großvater Großmutter Großvater Großmutter Tante/Onkel Vater Mutter.
 Präsentation transkript:

Munz – IT/TG - Lörrach

Goals of this intensive lecture To learn: To learn: –What does it means programming in Java ? –What is JAVA good/bad for ? –Which programming resources offers JAVA to support modern programming ? –What is Object Oriented Programming ? You should be able to design, write, debug and run Java programs of certain complexity You should be able to design, write, debug and run Java programs of certain complexity Learning by example Learning by example

What means by Example A lot of example programs A lot of example programs Little explanation about the details of the syntax Little explanation about the details of the syntax There will be some slides about the Java syntax after we see the examples (shortly) There will be some slides about the Java syntax after we see the examples (shortly) You will be confronted with the practical problems about programming You will be confronted with the practical problems about programming The reason of many programming recipes will became clear as we learn more The reason of many programming recipes will became clear as we learn more Deductive learning/teaching style Deductive learning/teaching style

Why is JAVA so Popular ? Multi-platform Multi-platform Object oriented: the modern programming paradigm Object oriented: the modern programming paradigm Robust: avoids programming features which can frequently cause errors, permits recovering from errors. Robust: avoids programming features which can frequently cause errors, permits recovering from errors. Aware of the Network: easy for developing distributed systems in a TCP/IP network Aware of the Network: easy for developing distributed systems in a TCP/IP network It is free and has very good documentation It is free and has very good documentation

Some historical facts Java was conceived in 1990 as a microchip programming language for domestic appliances Java was conceived in 1990 as a microchip programming language for domestic appliances Java means coffee in the USA (programmers drink lot of coffee) Java means coffee in the USA (programmers drink lot of coffee) As such it has had not much acceptance (yet) As such it has had not much acceptance (yet) It was seen that the same characteristics are good for a multi-platform language It was seen that the same characteristics are good for a multi-platform language The Applets made Java famous The Applets made Java famous

What do I need to develop Java programs There are many commercial and free developing environments There are many commercial and free developing environments We will use the most simple and sure, but may be not the most efficient way to develop big applications We will use the most simple and sure, but may be not the most efficient way to develop big applications We need: We need: –A text editor –The compiler –The JVM The JDK or SDK

How do I write and run a Java Stand-alone Program ? MyProg.java Java source code Java compiler (javac) class { int i,j; public main MyProg.class Java Java VM (java)

How do I write and run a Java-Applet ? MyApplet.java Java source code Java compiler (javac) class { int i,j; public main MyApplet.class Java VM (inside the browser)

What makes Java Multi- platform Java compiler (specific for each platform) javac P1.java javac P1.java P1.javaP1.class Java interpreter (specific for each platform) also called Java Virtual Machine java P1 Programs output

How do I get the JDK ? (outside the school) You can download the JDK fromhttp://java.sun.com/ There are different versions of JAVA 1.Java 1.0.x Original version, largely been replaced. 2.Java 1.1.x Major upgrade from 1.0. (double) Many things in the earlier were deprecated in this version. They still exist and can be used, but there are new (and often better) ways of doing the same things. 3.Java 1.2.x. Known as Java 2. Doubled the size and capabilities of the previous version. This version can be downloaded as an SDK (Software Development Kit). An SDK is the same thing as a JDK, only the name was changed. 4.Java 1.3.x This version is also known as Java 2, Version 1.3. It is also known as J2SE which stands for Java 2 Standard Edition. 5.Java 1.4.x This has been released as a beta version

Java compared to C JAVAC speed - interpreted + directly executed versatility - code must fit for every computer + access to low level programming res. standardiza tion + Java is the same everywhere - each C compiler has some differences Multi- platform + the same source and java code - similar source code but different object code Robustness + no tricky prog. - Allows hackering Network + part of the language - different libraries Other libs + a lot and standard +- a lot but not standard

Lecture Content Einfaches programieren in Java (mit Hilfe der Class Console für I/O) Einfaches programieren in Java (mit Hilfe der Class Console für I/O) Variabeln, aritmehmetische Ausdrücke, Datentypen, casts, Bedingungen, Schleifen, Verzweigungen Variabeln, aritmehmetische Ausdrücke, Datentypen, casts, Bedingungen, Schleifen, Verzweigungen String-Operationen, Text-orientiertes I/O auf Dateien String-Operationen, Text-orientiertes I/O auf Dateien Weitere Klassen, package Konzept Weitere Klassen, package Konzept Statische Methoden Statische Methoden Class-orientiertes programieren Class-orientiertes programieren Klassendefinitionen und Zugriffsrechte Klassendefinitionen und Zugriffsrechte Vererbung, Interfaces und Polymorphie Vererbung, Interfaces und Polymorphie Graphics und Graphische Schnittstellen Graphics und Graphische Schnittstellen

Mein Erstes Programm in Java public class Programm1 { public static void main(String args[]) { public static void main(String args[]) { Console c = new Console(); c.print("Hallo, tipp ein Nummer ein ?"); int deinnummer = c.readInt(); int meinnummer = deinnummer+1; c.println(" Mein Nummer lautet " + meinnumer); c.println("Also ich gewinne Diesmal") }} Blau: standart Rot: Datentypen Grün: Variabeln

Mein Zweites Programm public class Programm2 { public static void main(String args[]) { public static void main(String args[]) { Console c = new Console(); c.print("Hallo, wie heist du ?"); String name = c.readString(); c.print("Wann bist Du geboren ? (Jahr) "); int jahr = c.readInt(); c.println(name+", also du bist ungefähr "+ (2001-jahr)+" alt "); }} Blau: standart Rot: Datentypen Grün: Variabeln