Home > Cannot Find > Cannot Find Symbol DateformatCannot Find Symbol Dateformat Contents Cannot Find Symbol Dateformat Import Java Text Simpledateformat When using an else statement, the compiler is smart enough to see that in at least one case x will be initialized: public class Test { public static void main(String[] args)