diff --git a/.idea/libraries/openjfx_javafx_base.xml b/.idea/libraries/openjfx_javafx_base.xml index 6f47257..90e7dbd 100644 --- a/.idea/libraries/openjfx_javafx_base.xml +++ b/.idea/libraries/openjfx_javafx_base.xml @@ -3,7 +3,7 @@ - + diff --git a/.idea/libraries/openjfx_javafx_controls.xml b/.idea/libraries/openjfx_javafx_controls.xml index 52406f3..5956572 100644 --- a/.idea/libraries/openjfx_javafx_controls.xml +++ b/.idea/libraries/openjfx_javafx_controls.xml @@ -3,11 +3,11 @@ - + - + - + diff --git a/.idea/libraries/openjfx_javafx_graphics.xml b/.idea/libraries/openjfx_javafx_graphics.xml index 0cfcecc..8fdcc88 100644 --- a/.idea/libraries/openjfx_javafx_graphics.xml +++ b/.idea/libraries/openjfx_javafx_graphics.xml @@ -3,9 +3,9 @@ - + - + diff --git a/WS23_24/Anwendungsentwicklung/Anwendungsentwicklung.iml b/WS23_24/Anwendungsentwicklung/Anwendungsentwicklung.iml index e295f4b..a993c1c 100644 --- a/WS23_24/Anwendungsentwicklung/Anwendungsentwicklung.iml +++ b/WS23_24/Anwendungsentwicklung/Anwendungsentwicklung.iml @@ -10,5 +10,6 @@ + \ No newline at end of file diff --git a/WS23_24/Anwendungsentwicklung/src/Klausur_ueb/Lambda.scala b/WS23_24/Anwendungsentwicklung/src/Klausur_ueb/Lambda.scala new file mode 100644 index 0000000..510d4dd --- /dev/null +++ b/WS23_24/Anwendungsentwicklung/src/Klausur_ueb/Lambda.scala @@ -0,0 +1,14 @@ +package Klausur_ueb + +object Lambda { + def main(args: Array[String]): Unit = { + val a = Array(1, 2, 3, 4, 5) + val summe = a.reduce((x: Int, y: Int) => x + y) + val summeKuerzer = a.reduce((x, y) => x + y) + val summeNochKuerzer = a.reduce(_ * _) + val summeGanzKurz = a.sum //vordefiniert + println(summeGanzKurz) + println(summeNochKuerzer) + } + +} diff --git a/out/production/Anwendungsentwicklung/HalloWelt$.class b/out/production/Anwendungsentwicklung/HalloWelt$.class new file mode 100644 index 0000000..8767064 Binary files /dev/null and b/out/production/Anwendungsentwicklung/HalloWelt$.class differ diff --git a/out/production/Anwendungsentwicklung/HalloWelt.class b/out/production/Anwendungsentwicklung/HalloWelt.class new file mode 100644 index 0000000..391e80d Binary files /dev/null and b/out/production/Anwendungsentwicklung/HalloWelt.class differ diff --git a/out/production/Anwendungsentwicklung/Klausur_ueb/ExecuteTask.class b/out/production/Anwendungsentwicklung/Klausur_ueb/ExecuteTask.class new file mode 100644 index 0000000..3152358 Binary files /dev/null and b/out/production/Anwendungsentwicklung/Klausur_ueb/ExecuteTask.class differ diff --git a/out/production/Anwendungsentwicklung/Klausur_ueb/Lambda$.class b/out/production/Anwendungsentwicklung/Klausur_ueb/Lambda$.class new file mode 100644 index 0000000..fdc1e3d Binary files /dev/null and b/out/production/Anwendungsentwicklung/Klausur_ueb/Lambda$.class differ diff --git a/out/production/Anwendungsentwicklung/Klausur_ueb/Lambda.class b/out/production/Anwendungsentwicklung/Klausur_ueb/Lambda.class new file mode 100644 index 0000000..cfbeaee Binary files /dev/null and b/out/production/Anwendungsentwicklung/Klausur_ueb/Lambda.class differ diff --git a/out/production/Anwendungsentwicklung/Klausur_ueb/Task.class b/out/production/Anwendungsentwicklung/Klausur_ueb/Task.class new file mode 100644 index 0000000..f1ba2b2 Binary files /dev/null and b/out/production/Anwendungsentwicklung/Klausur_ueb/Task.class differ diff --git a/out/production/Anwendungsentwicklung/P10/FrenchDude$.class b/out/production/Anwendungsentwicklung/P10/FrenchDude$.class new file mode 100644 index 0000000..94140bb Binary files /dev/null and b/out/production/Anwendungsentwicklung/P10/FrenchDude$.class differ diff --git a/out/production/Anwendungsentwicklung/P10/FrenchDude.class b/out/production/Anwendungsentwicklung/P10/FrenchDude.class new file mode 100644 index 0000000..a0472c0 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P10/FrenchDude.class differ diff --git a/out/production/Anwendungsentwicklung/P10/additionCurry$.class b/out/production/Anwendungsentwicklung/P10/additionCurry$.class new file mode 100644 index 0000000..3da0b37 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P10/additionCurry$.class differ diff --git a/out/production/Anwendungsentwicklung/P10/additionCurry.class b/out/production/Anwendungsentwicklung/P10/additionCurry.class new file mode 100644 index 0000000..3f6809e Binary files /dev/null and b/out/production/Anwendungsentwicklung/P10/additionCurry.class differ diff --git a/out/production/Anwendungsentwicklung/P10/calculate$.class b/out/production/Anwendungsentwicklung/P10/calculate$.class new file mode 100644 index 0000000..43ae225 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P10/calculate$.class differ diff --git a/out/production/Anwendungsentwicklung/P10/calculate.class b/out/production/Anwendungsentwicklung/P10/calculate.class new file mode 100644 index 0000000..eb28794 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P10/calculate.class differ diff --git a/out/production/Anwendungsentwicklung/P9/Numbers$.class b/out/production/Anwendungsentwicklung/P9/Numbers$.class new file mode 100644 index 0000000..12d9dd3 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P9/Numbers$.class differ diff --git a/out/production/Anwendungsentwicklung/P9/Numbers.class b/out/production/Anwendungsentwicklung/P9/Numbers.class new file mode 100644 index 0000000..deb8a30 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P9/Numbers.class differ diff --git a/out/production/Anwendungsentwicklung/P9/test$HalloWelt$.class b/out/production/Anwendungsentwicklung/P9/test$HalloWelt$.class new file mode 100644 index 0000000..58a3edf Binary files /dev/null and b/out/production/Anwendungsentwicklung/P9/test$HalloWelt$.class differ diff --git a/out/production/Anwendungsentwicklung/P9/test.class b/out/production/Anwendungsentwicklung/P9/test.class new file mode 100644 index 0000000..669c5d2 Binary files /dev/null and b/out/production/Anwendungsentwicklung/P9/test.class differ diff --git a/out/production/Anwendungsentwicklung/Palindrom$.class b/out/production/Anwendungsentwicklung/Palindrom$.class new file mode 100644 index 0000000..6c538b5 Binary files /dev/null and b/out/production/Anwendungsentwicklung/Palindrom$.class differ diff --git a/out/production/Anwendungsentwicklung/Palindrom.class b/out/production/Anwendungsentwicklung/Palindrom.class new file mode 100644 index 0000000..23f3132 Binary files /dev/null and b/out/production/Anwendungsentwicklung/Palindrom.class differ