HI,
ich habe eine Frage zu IntelliJ idea.
Wenn ich bearbeite zum Beispiel Aufgabe 318 und erstelle den Quelltext und möchte meine Code ausführen lassen.
Wenn allerdings auf "Run" bzw auf Rebuild klicke führt er immer Aufgabe 314 aus, die ich Zufuhr gelöst habe aus.
Ich arbeite immer in der Solution Klasse der zugehörigen Aufgabe und Speicher es dann ab.
Ich habe schon alles versucht. Komme aber nicht weiter.
Christopher Berg
Level 7
Intelli Jidea - Kompilieren??
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
16 February 2021, 16:09
Codegym tasks are one big project with multiple main methods. IntelliJ idea is set up to code in projects like this where you would have hundreds or thousands of classes with different entry points either on purpose or for testing. As such, it will start the task that it is specified to do so, shown in the top right corner, no matter what class you are working on. In real development this feature is very helpful as you can make changes in many different areas of code while the code starts where you specify every time you hit 'run'.
To change the specified class that you want to run simply use the keyboard shortcut ctrl+shift+f10 with the class open on your screen (or right click in the code and select run). This will change it to the current class and run it at the same time. You can then open any other class and hit the run button to see that it only runs the specified class.
Here is a screen shot of where it shows what class it is going to run, plus the last few classes it ran.
In codegym it gets a little confusing because they name every class "Solution" so this list is filled with:
Solution
Solution(1)
Solution(2)
Solution(3)
etc...

0