Basic command-line calculator Its an Basic Calculator I worked on, and now I wanna know if I can make something better like not so &quot;much&quot; Code or I made somthing to complicated? Have a nice day! Keep safe!
 import java.util.Scanner;

public class learningCode {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);


        System.out.println(&quot;Bitte geben sie einen Rechenoperator für ihre Rechnung ein! (+, -, *, /)&quot;);

        String numberTest = scan.nextLine();


        if (numberTest.equals(&quot;+&quot;)) {
            String questionOne = &quot;Bitte gebe deine erste Zahl ein: &quot;;
            System.out.println(questionOne);
            double number1 = scan.nextDouble();
            String questionTwo = &quot;Bitte gebe deine zweite Zahl ein: &quot;;
            System.out.println(questionTwo);
            double number2 = scan.nextDouble();
            double finalResult = number1 + number2;

            String Answer = &quot;Dein Ergebnis ist: &quot;;

            System.out.println(Answer  + finalResult );

            scan.close();
        }
        else {

            if (!&quot;+&quot;.equals(numberTest) &amp;&amp; !&quot;-&quot;.equals(numberTest) &amp;&amp; !&quot;*&quot;.equals(numberTest) &amp;&amp; !&quot;/&quot;.equals(numberTest)) {
                System.out.println(&quot;Das ist kein Rechenoperator. Bitte versuche es erneut!&quot;);
            }

            if (numberTest.equals(&quot;*&quot;)) {
                String questionTwo = &quot;Bitte gebe deine erste Zahl ein: &quot;;
                System.out.println(questionTwo);
                double number1 = scan.nextDouble();
                String questionThree = &quot;Bitte gebe deine zweite Zahl ein: &quot;;
                System.out.println(questionThree);
                double number2 = scan.nextDouble();
                double finalResult = number1 * number2;

                String Answer = &quot;Dein Ergebnis ist: &quot;;

                System.out.println(Answer  + finalResult );

                scan.close();
            }
            if (numberTest.equals(&quot;/&quot;)) {
                String questionThree = &quot;Bitte gebe deine erste Zahl ein: &quot;;
                System.out.println(questionThree);
                double number1 = scan.nextDouble();
                String questionFour = &quot;Bitte gebe deine zweite Zahl ein: &quot;;
                System.out.println(questionFour);
                double number2 = scan.nextDouble();
                double finalResult = number1 / number2;

                String Answer = &quot;Dein Ergebnis ist: &quot;;

                System.out.println(Answer  + finalResult );

                scan.close();
            }
            if (numberTest.equals(&quot;-&quot;)) {
                String questionFive = &quot;Bitte gebe deine erste Zahl ein: &quot;;
                System.out.println(questionFive);
                double number1 = scan.nextDouble();
                String questionSix = &quot;Bitte gebe deine zweite Zahl ein: &quot;;
                System.out.println(questionSix);
                double number2 = scan.nextDouble();
                double finalResult = number1 - number2;

                String Answer = &quot;Dein Ergebnis ist: &quot;;

                System.out.println(Answer  + finalResult );

                scan.close();
            }

        }


    }
}
Naming
Adhere to the Java Naming Conventions.

Names of methods and variables start with a lowercase letter, names of classes with an uppercase letter.

Method names should start with a verb so that they read like an instruction. Names of variables should start with a noun.

Exception to that are variables holding or methods returning a boolean which both should start with is, can, has or alike.


Don't surprise your readers
You have a variable named numberTest but it does not contain a test for a number but the current operation or the users choice.
Code Quality
Structure  your code with methods.
You wrote a single long method.
This method contains an if/else cascade that somehow separates the method in to different sections.
You should extract this blocks in to separate Methods (leaving the if/else instructions in main) so that the main method becomes shorter and easier to read (and to maintain).
Don't repeat yourself
All over your code you repeat this two lines with varying variable names:
            System.out.println(questionSix);
            double number2 = scan.nextDouble();

This two lines could be extracted to a separate method that takes the String as parameter and returns the double value. That would shrink four lines in your code to just one.