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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -