kyuuq
kyuuq kyuuq
  • 28-10-2020
  • Computers and Technology
contestada

the language is Java! please help

the language is Java please help class=

Respuesta :

Cytokine
Cytokine Cytokine
  • 28-10-2020

public class Drive {

   int miles;

   int gas;

   String carType;

   public String getGas(){

       return Integer.toBinaryString(gas);

   }

   public Drive(String driveCarType){

       carType = driveCarType;

   }

   public static void main(String [] args){

       System.out.println("Hello World!");

   }

   

}

I'm pretty new to Java myself, but I think this is what you wanted. I hope this helps!

Answer Link

Otras preguntas

you spend $50 on a meal for you and your friends. graph the equation 1.5y+4x=50. x=number of sandwiches bought and x=number of drinks bought.
why do you think scribes were so honored in Egyptian society
What leadership qualities did James Madison show? The first person to answer right gets voted as best!:-)
you spend $50 on a meal for you and your friends. graph the equation 1.5y+4x=50. y =number of sandwiches bought and x= number of drinks.
X=7y-9 X+7y=8 Need help using substitution. ?! Please
If you use half as many moles of reactant *then: you'll make twice as much moneythe reaction won't happen the reaction will release half as much heat the reacti
inequalities               8-4x>-12
what city is located on 35 degrees north and 135 degrees east
What is the difference of 17 7/8-12 3/12
how do I solve x=y+8and 5x+3y=12in substitution form