Initializing multiple variables to the same value in Java?

I'm looking for a clean and efficient method of declaring multiple variables of the same type and of the same value....

JavaScript check if variable exists (is defined/initialized)?

Which method of checking if a variable has been initialized is better/correct? (Assuming the variable could hold any...

JAVA Variable declaration not allowed here?

I get an error "Variable declaration not allowed here" and I don't know why, I'm new in java and can't find answer :...

Difference between public static and private static variables?

class Employee{ // salary variable is a private static variable private static double salary; // DEPARTMENT is a ...

function won't change value of variable in java??

I know that everything in java is passed by value but shouldn't the below code print 2 instead of 1. All I am doi...

extern and global in c?

Can anyone please tell me is there any special requirement to use either EXTERN or GLOBAL variables in a C program? ...

Java calling variable in another method?

I'm new to Java programming, I just have a easy question but I can't do it because I didnt know how to write it on J...

How can I check if an element exists in the visible DOM??

How do you test an element for existence without the use of the getElementById method? I have set up a live demo fo...

How do I count unique values inside a list?

So I'm trying to make this program that will ask the user for input and store the values in an array / list. Then wh...

How to set a Python variable to 'undefined'??

In Python 3, I have a global variable which starts as "undefined". I then set it to something. Is there a way to...

Variable might not have been initialized error?

When i try to compile this: public static Rand searchCount (int[] x) { int a ; int b ; ... ...

Why do I get an “Unreferenced Local Variable” warning? (C++)?

When I do something like #include<iostream> int main() { int x; return 0; } I get a warning about x...

Variable warning set but not used?

int none[5]; int ntwo[5]; (the following is in a switch statement); if (answer == userAnswer) { printf("Co...

How do I pass JavaScript variables to PHP??

I want to pass JavaScript variables to PHP using a hidden input in a form. But I can't get the value of $_POST['hid...