Hi, If you look trough my code you can see that i have tried to print out some values (the mean value) with a scanner from a csv file with the help of an enhanced for loop (the absolut last loop) and it gives me NaN (not a number). And i cannot figure out why as i get the values from the file through the loop and everyone says my code looks right. Can anyone help? Did we perhaps miss something? package apelsinenn; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.ArrayList; import …

Member Avatar
Member Avatar
+0 forum 49

This is my javascript code. here i am trying to multiple two values in each row (totally 7 rows) and then doing addition operation at end of the table. its worked but problem is NaN. when i entered all fields then only it shows the final value. if user entered 5 rows values it shows NaN. I want if they didn't entered few rows remaining rows will be caluculated and shown in text box. how to do....??? function doCal() { var nValue; var nValue1; nValue = document.getElementById("noofnights").value; nValue1 = document.getElementById("rate").value; amount=(nValue*nValue1); document.getElementById("total").value=amount; var nValue2; var nValue3; nValue2 = document.getElementById("noofnights1").value; nValue3 …

Member Avatar
Member Avatar
+0 forum 8

Hi alll. My problem is that while watching a recorded video of lectures,streaming stops in between and shows NaN error...What is it?Why does this happen??How can I avoid this error??Pleae reply as soon as possible.

Member Avatar
+0 forum 0

The End.