QUOTE(PsychoCoder @ 23 Jun, 2008 - 01:50 PM)

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Please post like this:

Thank you for helping us helping you.
java
import java.io.*;
import java.util.*;
class MilesToKms{
public static void main (String[] args)throws Exception{
//1 mile = 1.609 344 kilometer;
int miles
Scanner scan= new Scanner (System.in);
System.out.print("Enter a number of miles: ");
float km = miles * 1.609344f;
System.out.println(miles + " miles is " + km + " kilometers.");
}
}