Results 1 to 9 of 9

Thread: Java Ebooks

  1. #1
    adredz is offline Member
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Default Java Ebooks

    Hi, im new to this forum. just started programming java. im currently looking for free ebooks. just want to ask if you have a suggestion as to which i must use? is there a free version i can download? thanks!

  2. #2
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    9

    Default

    Try searching "java rapidshare ebook". You can find several ebooks to download.

  3. #3
    yxrh is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Default Finding the square root of a given integer using an algorithm

    I was given a lab in my programming class that asks us to use the algorithm
    xi+1=0.5(xi + n/xi) Xo= n/2, tofind thesquare root of the integer.
    the user supplies a parameter for the # of iterations. We were asked to overload the square root function by providinganother call that does thesame thingbut continues to iterate untilthecalculated value is less than a
    user provided errorvalue.

    Below is asample of thecode I am working on. I seem to be havingproblems compiling.

    public class SlowMath {

    private double n;
    private double num;
    private int i;
    private double a;

    // Scanner input = new Scanner (System.in);

    // Create application frame.





    public SlowMath(double n,double num,int i)
    {
    num=n/2;
    n=25;



    while(i<=10)
    {
    i=i+1;
    num=0.5*(num+n/num);
    }

    public void setN(double n)
    {
    n=25;
    }

    public double getN()
    {
    return n;
    }

    public void setNum(double num)
    {
    num=0.5*(num+n/num);
    }

    public double getNum()
    {
    return num;
    }

    /*
    public SlowMath(double n,double num,int n,double a)
    {
    a=n;
    double num=Math.sqrt(a);


    while(num!= )
    {
    num=num+1;
    num=0.5(num+n/num);
    }

    if(x=-1)
    System.out.println("Enter error value to stop: )


    }



    // Show frame


    */

    }
    }
    Please help!!

  4. #4
    Supamagier is offline Senior Member
    Join Date
    Aug 2008
    Posts
    384
    Rep Power
    7

    Default

    Make a new topic and use code tags.
    I die a little on the inside...
    Every time I get shot.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Supamagier View Post
    Make a new topic and use code tags.
    Yes, please don't post your question if it's not related with the original one. Just start a new thread in the right forum. Please read our FAQ page before posting again here in our community.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    Are those legal?

  7. #7
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,526
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Tolls View Post
    Are those legal?
    I don't think so; I just reported the post.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    Oh good.
    I thought about it, but wasn't sure.

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. ebooks
    By artem in forum Reviews / Advertising
    Replies: 1
    Last Post: 01-18-2008, 09:20 PM
  2. Free eBooks- Java and other technology
    By derrickD in forum Reviews / Advertising
    Replies: 0
    Last Post: 05-18-2007, 06:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •