I have some problems understanding what are the types after each
System.out.println();
line in this Java code. Right now I am getting errors at line 4 and the rest of the code does not run, can determine what is the problem? Can somebody explain to me what of what type is the result and why? I guess you don't even have to run the code, it just asks for some basic Java knowledge, that I do not have :( From what I understand
System.out.println ((1<<1) << 2);
delivers 8... but then again, why?
public static void main(String[] args) {
String[] s= {"a", "2.0", "3", "eip"};
System.out.println (s[7/3]);
System.out.println (Integer.parseInt(s[1])*3.0f);
System.out.println ((1<<1) << 2);
System.out.println (s[s.length-1].equals("EIP"));
System.out.println (Double.parseDouble(s[2]+1) == Integer.parseInt(s[1]));
System.out.println (1==0|| ! (false & !true));
}}