Ok, thanks for the help everyone. This one is solved now.
Type: Posts; User: TheSlowLearner
Ok, thanks for the help everyone. This one is solved now.
I feel really stupid having to have a primitive type defined, but then what exactly is a double? I thought it was a number with a decimal point rounded to the second decimal place.
Also, why does...
No rhyme intended.
import java.util.Scanner;
public class CalculatorProgram {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double firstNumber,...
Thanks to everyone who helped. This is now a solved question.
Thanks. This helped me understand. :D
public class ObjectInitialization {
Object object1;
static Object object2;
public static void main(String[] args) {
Object object3;
}
}
Ok, I hope these are my last questions. I just want to be sure I understand fully.
Why would you ever WANT an object to be set to null? Would you set an object to null if you wanted it to be...
Just wondering, what does this mean exactly? Could you give an example? For some reason I just can't picture what you're saying.
Thanks for all the answers everyone.
So, just to be sure I understand: without initializing the object it has a 'null' value and any attempt to call methods on it will result in a 'null pointer...
Hi, this is my first time posting on this forum so I'm sorry if this isn't the right place for this topic. If it isn't the right place, please tell me where a better place might have been. Also, if...