floppyspace's Profile User Rating: -----

Reputation: 48 Craftsman
Group:
Active Members
Active Posts:
254 (0.17 per day)
Joined:
04-February 10
Profile Views:
3,716
Last Active:
User is offline Feb 26 2014 05:37 AM
Currently:
Offline

Previous Fields

Country:
AU
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   floppyspace always learning something...

Posts I've Made

  1. In Topic: making a credit limit calculator

    Posted 19 Feb 2014

    I would suggest doing some searching around before asking this, the internet has many examples of a credit card account.

    But I suggest breaking it down to what has been asked:

    You know you will have to have 7 customers

    You know you need to ask the customer for 5 pieces of information,what can you use to get this information from a customer?

    You know that if -1 is entered it will close the program.

    and so on...
    Then just work out what you will need to get each of these particulars done, prompt user for input and use the scanner class to save to a variable?

    Get the pen and paper out and read it carefully, breaking it down makes it a lot easier than been overwhelmed with a full paragraph of blah.

    This post may help you understand a bit more about some (but not all) of what you could do.
  2. In Topic: Incompatible types error when creating object in BlueJ

    Posted 19 Feb 2014

    because intFuelgauge is an int, your handing it a string

    I do not know enough about blueJ but from the image that is what has happened, change it to an int and see what happens, my though is it will run fine but?
  3. In Topic: JOptionPane/Calcuation Program

    Posted 19 Feb 2014

    referring to first post why not put your JOptionPane in a method and use a switch and if it is wrong have it call the JOptionPane again after displaying a default error message?
  4. In Topic: Incompatible types error when creating object in BlueJ

    Posted 19 Feb 2014

    Have you tried making a little test harness to see what happens?

    It looks like it will run but what are you passing as the object?

    		Car car = new Car();
    		Car car2= new Car("ford", "red", 10);
    
    


    These should work.

    But as salazar says more information for a better answer.
  5. In Topic: Error checking for String when needing an Int

    Posted 11 Feb 2014

    View Postandrewsw, on 12 February 2014 - 10:32 AM, said:

    With this line:
    myOption = kb.nextInt();
    

    it is easy enough to check for a negative number using if (myOption < 0).

    If you want to allow the user to enter a letter "a" then you'll need to switch to reading a string input using nextLine() (unless you want to use error handling or perhaps hasNextInt()).

    Once you've read this string-input you can try to parse it as an integer.

    A simplistic solution is just to look for a specific exit-value such as -99.


    More specific to the question than my solution.

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
some page on the web
Interests:
Reading,Gardening,Computers,Cooking,Soccer,Anything tech.
Years Programming:
2
Programming Languages:
Learner of all languages.
Current main interest PHP,Java,Web Development

Anything and everything.

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

Page 1 of 1
  1. Photo

    David W Icon

    07 Jun 2012 - 01:38
    Like your attitude, my friend.
  2. Photo

    floppyspace Icon

    12 Jan 2012 - 21:04
    floppyspace has no profile comments yet. Why not say hello?
    Hello
Page 1 of 1