Search:

Type: Posts; User: bczm8703

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,288

    Re: error when running with jar

    i just found out that the println statement only print the 2 println i added at paint component.. the one at the timer actionperformed method isn't being printed... thought the sequence of the...
  2. Replies
    8
    Views
    1,288

    Re: error when running with jar

    sorry if this question is a bit noob.. the tutorial only show like a class involved.. based on the product structure..

    when the program 1st run, Main.java, the only class with main method, would...
  3. Replies
    8
    Views
    1,288

    Re: error when running with jar

    Output:


    BTSend Log.listener: Using Bluetooth device with address = 00165316F6AD
    BlueCove version 2.1.0 on winsock
    BTSend Log.listener: Connected to null
    Sending msg: play

    Timer status:...
  4. Replies
    8
    Views
    1,288

    Re: error when running with jar

    no error message is being displayed...
    initialization and starting of timer in constructor...


    public C_Play(String st, Bluetooth newBT){
    name = st;
    btPlay=newBT;
    gui(st);
    t1= new...
  5. Replies
    8
    Views
    1,288

    error when running with jar

    hi.. i am preparing my codes for submission so i package my code into jar file.. but upon running the codes using the jar, there seems to be an error with my code.. the timer action performed method...
  6. Replies
    1
    Views
    2,085

    OutOfMemory java heap size

    Hi... Currently I am doin the k nearest neighbour classification using java.. The data size for training data set and test data set consist of 10k samples each.. I have to calculate the distance for...
  7. Replies
    5
    Views
    2,341

    [SOLVED] Re: sorting only 1 column of 2D array

    thanks for all the help... think the error i 1st encounter is my stupid self trying to display a shorter version of my array.. did not realise that the value is hidden in the array index i did not...
  8. Replies
    5
    Views
    2,341

    [SOLVED] Re: sorting only 1 column of 2D array

    Weird... As stated in my first post. I tried your method and did not get your result. Will check where I did wrong
  9. Replies
    5
    Views
    2,341

    [SOLVED] Re: sorting only 1 column of 2D array

    double[][] a1 = new double[][] {{2.5,3.6,0.7,0.01},{0.85,1.32,0.20,0.992}};

    based on this the output after sorting should be
    a1[0][0] = 0.01 a1[1][0] = 0.20
    a1[0][1] = 0.7 a1[1][0] =...
  10. Replies
    5
    Views
    2,341

    [SOLVED] sorting only 1 column of 2D array

    hi.. i am trying to sort my 2D array such that only the 2nd column get sorted.. i tried to use Arrays.sort(arr[a]) but it seem to sort the whole array

    example of what i want:
    before sort...
  11. Replies
    4
    Views
    1,270

    [SOLVED] Re: Error when trying to use ArrayComparator

    sorry abt the mistake... i got my code to work already... thanks for the help
  12. Replies
    4
    Views
    1,270

    [SOLVED] Re: Error when trying to use ArrayComparator

    based on this java doc i thought ArrayComparator already being defined by java
  13. Replies
    4
    Views
    1,270

    [SOLVED] Error when trying to use ArrayComparator

    import java.util.*;
    public class c02 {

    public static void main(String[] args) {
    String[][] catalogue = new String[99][4];
    boolean endProg, inputOK;
    String input,...
  14. Replies
    4
    Views
    1,212

    Re: Question about String

    ic... thanks alot for answering my noob qn.. :)
  15. Replies
    4
    Views
    1,212

    Re: Question about String

    i saw that.. the only methods i can think of that help me is the indexOf method.. but it will only return the 1st occurence.. so for my case the last 'a' will be ignore..

    or for case like the...
  16. Replies
    4
    Views
    1,212

    Question about String

    hi.. sorry for asking such a noob question.. i am wondering if there anyway in java to give the position of the particular in a String..

    eg:
    for the word: "Java"

    is it possible to say i want...
  17. Re: Algorithms to smoothen lines using java and eclipse

    1111

    the picture attached is my expected result... but my current code only show the area highlighted by the orange box... the blue lines symbolise that the part is supposed to be a curve... my...
  18. Re: Algorithms to smoothen lines using java and eclipse

    the part that cause the not smooth movement is at the curve part.. the programme is short of a simulation of the traffic condition on the road itself. if i use the addition of subtraction of...
  19. Re: Algorithms to smoothen lines using java and eclipse

    sorry for nt being clear...

    my program will have a few road on the map.. these roads will be straight or curve and cars would be travelling on them.. what i would like to achieve is when the cars...
  20. Re: Algorithms to smoothen lines using java and eclipse

    correct me if i m wrong.. but the ref link is drawing the curve.. my case is an object supposedly travelling on the bend of the curve road.. is is the same??
  21. Algorithms to smoothen lines using java and eclipse

    the final product of my this project is to create an application to simulate the traffic condition on the road.. the user will sketch out the road using GUI done by the other programmer, my task is...
  22. Replies
    9
    Views
    3,032

    Re: Error connecting to database

    sorry for asking this... but i still need to specify the DSN??? caouse i m connecting to the access using a path method.. and my XP did not perform this type and it works
  23. Replies
    9
    Views
    3,032

    Re: Error connecting to database

    do u mean DNS or DSN? as i could not find any DNS in the odbcad32.exe

    oh and i sure java is being install as the connecting to mySQL is fine... the error only occur when i try to connect to MS...
  24. Replies
    9
    Views
    3,032

    Re: Error connecting to database

    have already checked that and the path is correct...
  25. Replies
    9
    Views
    3,032

    Re: Error connecting to database

    my XP did not define a source name... also my code specify the access file through the filename variable...
Results 1 to 25 of 48
Page 1 of 2 1 2