java - The value of the local variable is not used -


all of variables above have warning in title. please tell me why happening?

public class datatypes {     public static void main(string[] argv) {         // new feature in jdk 7         int x = 0b1010; // 12         int y = 0b1010_1010;         int ssn = 444_12_7691;         long phone = 408_777_6666l;         double num = 9_632_401_909.1_0_3;         string twoline = "line one\nline two";     } } 

the variables declared never used, assigned to, therefore you're being warned.


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -