I wanted to give it a go...hope it helps you
import java.io.*;
public class wordToLong
{
public static void main(String[] args)
{
Type: Posts; User: ArunUOM
I wanted to give it a go...hope it helps you
import java.io.*;
public class wordToLong
{
public static void main(String[] args)
{
You've left a lot of mistakes as far as syntax is concerned; fix those or at least compile and see :S.
For the logic of your program, i guess you'll want to put the equation in that for loop.
import java.io.*;
public class Test
{
public static void main(String[] args)
{
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
PrintWriter stdOut = new...
From what i believe you are wanting to achieve, i would suggest you put calculations for the MPG in the getMPG() method, and then remove 'double MPG' as a parameter in the constructor.
Hello everybody. My name's Arun and i'm a computer science student.
I'm hoping to enjoy myself on these forums :cool: