Search:

Type: Posts; User: mingming8888

Search: Search took 0.24 seconds.

  1. Replies
    1
    Views
    1,217

    Problem with For Loop

    Here is the code

    for (int g=1;g < V+1 ;g++) {
    System.out.println("For LOOP"+g);

    if (point1 != g){
    dis =...
  2. Replies
    3
    Views
    2,040

    Re: Can't pass to the other method

    I have delete all related static from the method, and now i got another error, it is
    "Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
    at...
  3. Replies
    3
    Views
    2,040

    Can't pass to the other method

    Hi, i am using package, and i want to call a method in the other java file called triangle, but it can't. i tried to pass this

    Triangle tri = new Triangle();
    tri. create();

    but it said...
  4. Replies
    9
    Views
    1,424

    Re: Problem with array

    u mean this??

    at triangle_projection.P.p(Prim.java:69) - for(int i=0;i<=tedges.length;i++)
    at triangle_projection.P.buildTable(Prim.java:55) - p();
    at triangle_projection.P.main(Prim.java:178) -...
  5. Replies
    9
    Views
    1,424

    Re: Problem with array

    i have tried to run it, and i got the result below
    1
    2
    50
    1
    3
    60
    1
    4
    70
  6. Replies
    9
    Views
    1,424

    Re: Problem with array

    This is the code
    import java.io.*;

    public class P {
    public static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    public static int [][] Graph;
    public static int...
  7. Replies
    9
    Views
    1,424

    Problem with array

    Hi,
    when i run my program, it shows this
    "Exception in thread "main" java.lang.NullPointerException"
    but my array doesn't not contain any null value, how can i check if the array is null or not,...
  8. Replies
    5
    Views
    1,739

    Re: wrong graphics

    Because my x and y is a double value, is it i can passed a double value into it? i want to be more accurate, so i want it to be a double value for x and y.
  9. Replies
    2
    Views
    1,295

    Re: Something wrong with array

    The file contains:
    1 2 50
    1 3 60
    1 4 70
    2 3 80
    2 4 40
    3 4 60
  10. Replies
    5
    Views
    1,739

    wrong graphics

    private void drawNode(double x, double y, double no, Graphics g) {
    g.fillOval(x, y, 17, 17); // draw an oval which is filled with the current color
    g.setColor(blue); // set current color to...
  11. Replies
    2
    Views
    1,295

    Something wrong with array

    import java.io.*;
    public class Prim {
    public static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    ....

    public static tempEdge [] tedges;
    ....

    ...
  12. Replies
    1
    Views
    1,476

    Can't run the method, Please help!!

    package triangle_projection;

    import java.io.*;
    import java.awt.*;

    public class Prim extends JComponent {

    public static int [][] Graph;
    public static int [][] Tree;
    public static int []...
  13. Replies
    2
    Views
    3,991

    Unit Vector

    i don't really understand unit vector, so i don't know how to calculate this, can anyone please help me to solve it?

    A(10,0), B(5,8.7) find the unit vector v1 n v2, also find a unit vector w,...
  14. Replies
    4
    Views
    3,295

    Re: Prim's algorithm

    Thank you for your explanation
  15. Replies
    4
    Views
    3,295

    Re: Prim's algorithm

    yea, they have the same distance, so Prim's algorithm will choose which path first? If we start the tree from A, so the next one is B, C or D?
  16. Replies
    4
    Views
    3,295

    Prim's algorithm

    For prim's algorithm, if a vertice have the same weight to other vertices, so which one will it be choosen to put in the tree?
    For example

    A to B is 3
    A to C is 3
    A to D is 3
    B to C is 3
    B to...
  17. Replies
    2
    Views
    2,780

    delaunay triangulation

    Hi
    Does anyone have the code of Delaunay triangulation?
    Thank you
  18. Replies
    8
    Views
    4,965

    Re: Java Programming

    yes, x and y


    after point 1 is projected, the right distance is the distance between point 1 and point 2 is the distance in the original space.


    For example
    Point 1 is (0,0)
    Point 2 is...
  19. Replies
    8
    Views
    4,965

    Re: Java Programming

    Yea, the 3rd point is equidistant from 1 and 2, so the 2 solutions are a positive and negative y, is it? then i will take the positive one. But how can i do this?
  20. Replies
    8
    Views
    4,965

    Re: Java Programming

    The algorithm is
    Pick a point and put it at the origin (0,0)
    Put the second point to the right distance away from the 1st point (0, distance(Point 1, Point 2))
    The 3rd point is the intersect of...
  21. Replies
    3
    Views
    1,678

    Re: Something wrong with the import things

    i have added j3dtree.jar
  22. Replies
    3
    Views
    1,678

    Re: Something wrong with the import things

    Here is the hand1.obj
  23. Replies
    3
    Views
    1,678

    Something wrong with the import things

    Hi
    i try to run the program below, but i don't know why i can't run it.
    There is something wrong with the import com.sun.j3d, how can i fix it?
    Thank you


    import java.applet.Applet;
    import...
  24. Replies
    8
    Views
    4,965

    Re: Java Programming

    yea, i dont know how to start doing this program....
  25. Replies
    8
    Views
    4,965

    Projecting a 3d point onto a plane

    Hi
    i am working on information visualization, which use triangle projection to do it, that get n points from a higher dimensional space to a 2 dimensional space. i need to project points from an...
Results 1 to 25 of 25