Commit 21e812e8 authored by Neff's avatar Neff
Browse files

Test Ordner von Tim und Jeśs geloescht

parent 1b89a309
Pipeline #10410 passed with stage
in 1 minute and 14 seconds
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-22">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TestTim</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=22
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=22
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=22
/**
*
*/
/**
*
*/
module TestTim {
}
\ No newline at end of file
!SESSION 2024-11-24 19:29:34.785 -----------------------------------------------
eclipse.buildId=4.33.0.20240905-0613
java.version=23
java.vendor=Eclipse Adoptium
BootLoader constants: OS=macosx, ARCH=aarch64, WS=cocoa, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/jessica/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch aarch64 -product org.eclipse.epp.package.java.product -keyring /Users/jessica/.eclipse_keyring
!ENTRY ch.qos.logback.classic 1 0 2024-11-24 19:29:35.853
!MESSAGE Activated before the state location was initialized. Retry after the state location is initialized.
!ENTRY ch.qos.logback.classic 1 0 2024-11-24 19:30:06.041
!MESSAGE Logback config file: /Users/jessica/Documents/UDigiT-Doctor2dev_cpp_code_conversion/test/.metadata/.plugins/org.eclipse.m2e.logback/logback.2.6.1.20240411-1122.xml
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=22
org.eclipse.jdt.core.compiler.compliance=22
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=22
package test;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Gib die erste Zahl ein:");
double zahl1 = scanner.nextDouble();
System.out.println("Gib die zweite Zahl ein:");
double zahl2 = scanner.nextDouble();
System.out.println("Wähle eine Operation (+, -, *, /):");
char operator = scanner.next().charAt(0);
double ergebnis;
switch (operator) {
case '+':
ergebnis = zahl1 + zahl2;
break;
case '-':
ergebnis = zahl1 - zahl2;
break;
case '*':
ergebnis = zahl1 * zahl2;
break;
case '/':
if (zahl2 != 0) {
ergebnis = zahl1 / zahl2;
} else {
System.out.println("Division durch Null ist nicht erlaubt.");
return;
}
break;
default:
System.out.println("Ungültiger Operator.");
return;
}
System.out.println("Das Ergebnis ist: " + ergebnis);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment