Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By doWhile

Thread: New in Java Graphing

  1. #1
    roquelexio is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Wink New in Java Graphing

    good day...i am new in java and i have some difficulty in this problem of mine...i would like to graph the values of x and the resulting values of y for the following code of mine...
    import java.lang.Math;
    class Yint{
    public double y;
    public Yint(double y){
    this.y=y;
    }
    double getY(){
    return y;
    }
    }
    class Solve{
    public Yint[] yint;
    public Solve(){
    yint = new Yint[20];
    for (int i=1; i<=15; i++){
    yint[i] =new Yint(Math.pow((i-8), 2)+3);
    System.out.print(" When x = "+i+" ; y = "+yint[i].getY()+".\n");
    }
    }
    }
    public class leccioiii {
    public static void main(String[] args) {
    new Solve();

    }
    }

    hoping someone will help me, thank you

  2. #2
    roquelexio is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: New in Java Graphing

    can someone help me please? thank you

  3. #3
    doWhile is online now Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Lightbulb Re: New in Java Graphing

    Quote Originally Posted by roquelexio View Post
    can someone help me please? thank you
    What is your question? Suggested reading
    How To Ask Questions The Smart Way
    And I highly recommend not bumping your threads - especially just an hour after you post. We are volunteers who do this for free in our spare time - expecting us to be online 24/7 at your beck and call can be considered both selfish and rude.
    Fubarable likes this.

Similar Threads

  1. Need help graphing
    By rperalta in forum Java 2D
    Replies: 6
    Last Post: 09-24-2011, 05:59 PM
  2. Graphing GUI
    By spyroth in forum NetBeans
    Replies: 3
    Last Post: 02-12-2011, 02:52 AM
  3. Scientific Graphing
    By shruthi Nadiger in forum AWT / Swing
    Replies: 2
    Last Post: 03-14-2010, 11:37 PM
  4. Graphing in java
    By collin389 in forum New To Java
    Replies: 2
    Last Post: 01-18-2010, 01:54 AM
  5. Help with graphing problem
    By adlb1300 in forum New To Java
    Replies: 2
    Last Post: 11-26-2007, 02:50 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
  •