Hey everyone ... I am very confused ...
My code is not passing verification but it returns the correct answer?
What am i missing?
Thanks
package com.codegym.task.task01.task0136;
/*
Even to the moon!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getWeight(888));
}
public static double getWeight(double earthWeight) {
Double moonWeight;
moonWeight = earthWeight * 0.17;
return moonWeight;
}
}
package com.codegym.task.task01.task0136;
/*
Even to the moon!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getWeight(888));
}
public static double getWeight(double earthWeight) {
Double moonWeight;
moonWeight = earthWeight * 0.17;
return moonWeight;
}
}