Format a date in java : <p>I have a date in String format: 2017-05-10.
I need to transform this string in this 10/05/2017. How i can do? 
Which library i can use?
I have tried this but not works</p>

<pre><code>DateFormat df = new SimpleDateFormat("dd-MM-yyyy",Locale.ITALIAN);
Calendar cal  = Calendar.getInstance();
cal.setTime(df.parse(data));
</code></pre>
