ok its working now butr it dsiplays 50000.0 <-- thats odd why wont is show 50000.00 ???
// A programs contains the following method:
//public static void display(int arg1, double arg2, char arg3)
//{
// System.out.println("The values are " + arg1 + ", " +
//arg2 + ", and " + arg3);
//}
//Write a statement that calls this method and passes the following varibles as arguements:
//char initial = 'T';
//int age = 25;
//double income = 50000.00
public class PassArg4
{
public static void main(String[] args)
{
char initial = 'T';
int age = 25;
double income=50000.00;
display(age, income, initial);
}
// A programs contains the following method:
public static void display(int arg1, double arg2, char arg3)
{
System.out.println("The values are " + arg1 + ", " +
arg2 + " , and " + arg3);
}
// Write a statement that calls this method and passes the following varibles as arguments:
// char initial = 'T';
// int age = 25;
// double income = 50000.00
}
Why does it just show 50000.0 <------?
instead of 50000.00 <-- everything else is right