I cannot validate tasks with IntelliJ IDEA. I receive an error from a previous task. I have already uninstalled and reinstalled it.I cannot validate tasks with IntelliJ IDEA. I receive an error from a previous task.
There are several ways to make IDEA to solve the task you need:
1. To press CTRL+SHIF+F10 when the cursor is active in the code window of the new task.
2. Next to the main method of the new task, on the left, where the line numbers are, click the green triangle and select the top item, which is called by the ClassName.main type, for example ("Run Solution.main CTRL + SHIFT + F10")
3. To the left of the class name which we want to run, there is also a green triangle next to the line number. Click on it and select the top item, which is called by the type ClassName.main, for example ("Run Solution.main CTRL + SHIFT + F10").
4. In the window with the code of the new task, right-click. Select the menu item of the form: "Run ClassName.main", for example - "Run Solution.main CTRL + SHIFT + F10").
If all of the above does not work, you can resort to more drastic measures:
1. Mark all used tasks as excluded. To do this, left-click on the used task and select Mark Directory as -> excluded in the drop-down menu. The task#### folder will turn orange.
2. If the method is not implemented but should return something, put stubs (return 1, return "", return new HashMap<>());
3. Comment out the problematic code in the previous tasks in order for the code in the required task would compile and wouldn't interfere with other tasks. How to do it? Select the problematic piece of code of the previous task and press CTRL + /. When you return to this task, then simply remove it from the comments.
--- important section in JAVA and C++ for those that a decent at JavaScript programming -- dynamic wild and crazy Type conversion is at the core of JS ... and is the causation for very odd happenings to debug
Me vais a perdonar pero estos ejercicios no tienen demasiado sentido, no se programa asi y hay maneras mas logicas de practicar el upcasting y el downcasting.
Usted esta 100% acertado. Es pura perda del tiempo. Exercises like that are like as puzzle solution and has a little to learn/practice about cast. I don't think I need to solve such a personal math enigma
to learn java. Please content Administrator be more clever on your exercises. Thanks
It seems task 2 Approximate value is misstated, or I am missing something? Conversion from int to float is not lossy and doesn't require the casting operator. Conversion from float to int is what's lossy.
I think you are right but, since they have made the change from int big to float approx, when you make the change to int approx again there will be losses.
Using debug mode in intellij really helped me with all of these tasks. Add a breakpoint to each line.
anouther useful hint(https://en.wikipedia.org/wiki/IEEE_754#Exception_handling): Division by zero: an operation on finite operands gives an exact infinite result, e.g., 1/0 or log(0). By default, returns ±infinity.
Someone explain me the conscious choice code please or provide me with some alternative understandable solution. Also, these conversions are they really necessary i mean we are trying to save a lil bit of data while coding but how much is it saved exactly. Also, why not just use not int or something according to out requirement and not indulge ourself into any conversions. That way the code is more readable.
BrentachiiLevel 13, United States of America, United States
26 January 2022
you can use the capital of the variable in the argument to get for example
System.out.println(Byte.MIN_VALUE) == 127
System.out.println(Byte.MAX_VALUE) == -128
As for why it's necessary for us to learn. I believe it's because not all devices that run java programs have the memory capacity to run programs that aren't minimalistic. another reason is that lots of businesses have programs that have millions of lines of code so if it's not optimized it could take forever to process requests.
GO TO FULL VERSION