i have a String x = \"1086073200000\" . This is basically millisecond which I need to convert to a Date.
To convert i am using
DateFormat formatter
double tempo=Double.parseDouble(z);
Why are you parsing your String which is supposed to be a Long as a Double?
Try using Long.parseLong:
String x = "1086073200000"
DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
long milliSeconds= Long.parseLong(x);
System.out.println(milliSeconds);
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(milliSeconds);
System.out.println(formatter.format(calendar.getTime()));