User Profile

Collapse

Profile Sidebar

Collapse
itgetsharder
itgetsharder
Last Activity: Feb 25 '08, 11:25 AM
Joined: Oct 30 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • itgetsharder
    started a topic homework help? doubles.
    in Java

    homework help? doubles.

    Hey, i was wondering if anyone could help me.
    i have two questions that i cannot complete for a homework assignment:

    [1] This method should convert its parameter (a string like "3.1415") to the corresponding value of type double. If the string supplied is not a valid number, it should return 0.0 as its result. Note that you can use the method Double.parseDou ble() to do the hard work for you.
    --------------------------------------------------------------------------------...
    See more | Go to post

  • itgetsharder
    replied to can anyone help me? newbie- code errors!
    in Java
    sorry to have to ask for help again. but i dont really understand what im trying to do.
    I have to :
    create a new method to make multiple copies:
    public int printMany(Strin g text, int number)
    This should try to make as many copies of the string as are passed to it as number
    (so printMany("test ",7) should produce 7 copies).
    It should use printOne() to actually produce the copy.

    ...
    See more | Go to post

    Leave a comment:


  • itgetsharder
    replied to can anyone help me? newbie- code errors!
    in Java
    yes i do.
    thanks so much. been trying to figure that out for days haha. you're a saint. x...
    See more | Go to post

    Leave a comment:


  • itgetsharder
    replied to can anyone help me? newbie- code errors!
    in Java
    nope i dont need to. ive been set an assignment and i have to use boolean in this part of the method. i cant get it to work though. x...
    See more | Go to post

    Leave a comment:


  • itgetsharder
    replied to can anyone help me? newbie- code errors!
    in Java
    i've been told i have to use boolean (not sure why). if i have to use boolean, how do i make the code do what i need it to?

    thanks x
    See more | Go to post

    Leave a comment:


  • itgetsharder
    replied to can anyone help me? newbie- code errors!
    in Java
    sorry to post again today, but im trying to figure out why my code isnt doing what i want.
    Im trying to get the code to add 1 from sheets printed when a print has occured and minus 1 from prints available.

    This is the code i have been using:


    [CODE=java]public boolean printOne(String text)
    {
    System.out.prin tln("Test printOne");
    return sheets == sheets...
    See more | Go to post

    Leave a comment:


  • itgetsharder
    started a topic my code isn't working- can anyone assist?
    in Java

    my code isn't working- can anyone assist?

    sorry to post again today, but im trying to figure out why my code isnt doing what i want.
    Im trying to get the code to add 1 from sheets printed when a print has occured and minus 1 from prints available.

    This is the code i have been using:

    Code:
       
            public boolean printOne(String text) 
        {
            System.out.println("Test printOne");
            return sheets == sheets
    ...
    See more | Go to post

  • itgetsharder
    started a topic can anyone help me? newbie- code errors!
    in Java

    can anyone help me? newbie- code errors!

    can anyone help me? code errors!
    --------------------------------------------------------------------------------

    im creating a code for a printer. the question i am trying to answer is :

    MyPrinter needs some printing methods. The first, signature:
    public boolean printOne(String text) {}
    should take a String as a parameter, and output it on a single line to the terminal window.
    It should...
    See more | Go to post
    Last edited by Ganon11; Oct 30 '07, 06:52 PM. Reason: Please use the [CODE] tags provided.

  • itgetsharder
    started a topic can anyone help me? code errors!
    in Java

    can anyone help me? code errors!

    im creating a code for a printer. the question i am trying to answer is :

    MyPrinter needs some printing methods. The first, signature:
    public boolean printOne(String text) {}
    should take a String as a parameter, and output it on a single line to the terminal window.
    It should also increment (add 1 to) the total number of copies made, and decrement (subtract 1 from) the number of sheets of paper available.
    ...
    See more | Go to post
No activity results to display
Show More
Working...