

Tut6 : Scala part2 & Lambda in Java
Presentation
•
Computers
•
University
•
Hard
Anna R
FREE Resource
6 Slides • 0 Questions
1
Tut6 : Scala part2 & Lambda in Java
By Anna R
2
Scala <-> Java Interoperabilität
Scala -> Java bytecode -> JVM
Bibliotheken jeweiliger Sprache können in beiden Sprachen referenziert werden
JVM unterscheidet zw. Scala und Java , JavaScript.... nicht
Die Funktionsmerkmale von Scala sind die gleichen wie die von Java.
3
Funktionen als Bürger erster Klasse
4
Deklarierte vs anonyme Funktionen
val f1: Int=>Double = i=>sqrt(i)
Funktionstyp!
(x: Double, y: Double):Double=>x+y
*optional
5
6
Optional <T> in Java
für Rückgabetyp einer Methode mit eventuell "keinem Ergebnis",
wo null -> Fehler
Werte als "available" oder "not available" behandeln, anstatt Nullwerte zu prüfen
Optional.isPresent - checks the value is present or not
Optional.orElse - returns the value if present otherwise returns the default value passed.
Optional.get - gets the value, value should be present
Tut6 : Scala part2 & Lambda in Java
By Anna R
Show answer
Auto Play
Slide 1 / 6
SLIDE
Similar Resources on Wayground
5 questions
PDA Software - Analysis PHP Processing
Presentation
•
12th Grade
7 questions
Innovación Educativa
Presentation
•
University
3 questions
Eutrophication Steps
Presentation
•
12th Grade
6 questions
Lección nomenclatura
Presentation
•
12th Grade
6 questions
Самопрезентация
Presentation
•
University
7 questions
ΕΠΕΞΕΡΓΑΣΙΑ ΚΕΙΜΕΝΟΥ-ΠΛΗΚΤΡΟΛΟΓΙΟ
Presentation
•
12th Grade
7 questions
SENTENCE COMPLETION
Presentation
•
University
7 questions
FACTORIAL DE UN NUMERO
Presentation
•
University
Popular Resources on Wayground
19 questions
Naming Polygons
Quiz
•
3rd Grade
10 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
Discover more resources for Computers
50 questions
ELA EOG Prep 7th Grade
Quiz
•
KG - University
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
dog breeds
Quiz
•
3rd Grade - Professio...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
49 questions
AP Environmental Science Final Exam Review
Quiz
•
10th Grade - University