package com.codegym.task.task01.task0137;
/* *
*Only 20 will do.
*/
public class Solution {
public static int a = 1;
public static int b = 3;
public static int c = 9;
public static int d = 27;
public static void main(String[] args) {
int result = + a + b - c + d;
int result1 = result - 2;
System.out.println(result1);
}
}
The program should return a value of 20 and I am getting the required output as well. But when I used the "Code Analysis", it says that a javadoc comment is missing. Can you please help me in this? Thanks in advance!
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Andrew
3 April 2019, 18:00
Don't use the code analysis, just try submitting it. It will run verification and that will tell you if you need to do anything.
0
Vani
5 April 2019, 14:57
Thanks for your input Andrew. When I run the program, it is getting executed successfully and giving the required output as per the requirement. But I am getting a message saying "the dark matter is not sufficient" and it is not letting me to open the next lessons. They are showing as "LOCKED". Due to this, I checked the "Code Analysis" and it is saying as javadoc comment is missing. Requesting inputs on this. Thanks in advance!
0
Andrew
5 April 2019, 15:23
The code analysis has nothing to do with dark matter. It's about style checking. Kind of like a proof reader for a school paper. It makes sure you have all the ideal things in the ideal places but it's not really related to if your code works or not or passes the validation tests. All that is handled by Verify.
Click Verify. If it passes and you can't get to the next section, try refreshing your browser to unlock the next section. If you don't have enough dark matter to go to the next section, you need to complete more of the exercises first. You get enough dark matter that you can skip a task once in a while if you can't figure it out (but ask for help and you can pass every one).
You're not there yet but as a heads up, there are a couple pages that were bugged when I went through and you have to go to the next or previous page and back to unlock. I can't remember, but there are comments at the bottom of the page telling you what to do.
0