Anyone know Java?

Status
Not open for further replies.
My Java class is kicking my butt. I don't know if I missed something early on, lost my secret decoder ring, or what, but I am in need of help.

I need someone, anyone, who knows Java to let me pick their brain. I don't need someone to do my assignments... i just need someone to help me understand what I am supposed to do and how it would be done.

I have signed up at dreamincode.com, and am slowly getting answers there, but I need something more direct.

Either post here or PM me. I have AIM, a cell phone, and might be able to remember my password for Yahoo Messenger.
I'm learning Java now.
So far, I've found it easy, so maybe I can help.
Or maybe, you can help me if I find something I don't understand.
 
Thanks for the offers, and the link OREO <<< your new nickname

I will be calling in some of ya'll soon. My life is a bit nuts just yet... taught last night, have a class tonight, program due Friday by midnight. Yeah, just wonderful.
 
I'm so irritated with the whole mess right now I can't see straight. Simple assignment, one part will compile, the other won't. I am getting "cannot find symbol" errors on each get statement. I am thinking because the class is in its own file, but both files are saved in the same directory, and I compiled the first file and then the second... but it still gives me the same errors.

Yes, it is spelled correctly (I think... too tired to think much). I tried combining the two files, but it wouldn't compile it that way, either... kept telling me to make two files.

Code:
// begin Inventory display application

public class InventoryDisplay
{

   // begin main method
   public static void main( String args[] )
   {

      // display item number
      System.out.printf( "Item number: \n%d\n",
         getItemNumber() );

      // display item name
      System.out.printf( "Item name: \n%s\n",
         getItemName() );

      // display item quantity in stock
      System.out.printf( "Item quantity: \n%d\n",
         getItemQuantity() );

      // display  item price
      System.out.printf( "Item price: $ %.2f\n",
         getItemPrice );

      // display inventory value
      System.out.printf( "Inventory value: $ %.2f\n",
         getInvValue );

      } // end main

} // end InventoryDisplay
 
I think you need to import whatever it is that contains the classes
Code:
import [whatever needs to be imported]
public class InventoryDisplay
{

   // begin main method
   public static void main( String args[] )
   {
//code here
   }
I have work shortly, but I'll look more into it when I get back.
 
Status
Not open for further replies.
Back
Top Bottom