Java programming question..Please help!?

Answer Neither person really answered your question about the use of printf(..).An exampledouble x = 17.234578;System.out.printf( "%.2f \n", x );will print17.23and go to the next line because of the \n

Top Q&A For: Java programming question..Please help!

Java programming help?

with simplicity a class variable can be accessed without created an object of the class consider this:class test{public static int x; // class variablepublic int y; //instance variable}i can do thi... Read More »

Help with Java programming problem?

I just googled "java length of string" and it brought me to this page. That's all you have to do, and I found a link to the java documentation of the string class. Read More »

Can someone please help me with java programming?

Look at your Employee class.There is a constructor method that has the same name as the class.So with this statementEmployee emp=new Employee();you need to look for a constructor with no parameters... Read More »

Hello, can anyone help me with Java Programming ?

When you do math, you're supposed to use operators, not spell out the operations.System.out.print("Enter your ht in inches: ");int height_inches = kbd.nextInt();int feet = inches / 12; ... Read More »