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...
Type: Posts; User: bczm8703
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...
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...
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:...
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...
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...
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...
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...
Weird... As stated in my first post. I tried your method and did not get your result. Will check where I did wrong
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] =...
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...
sorry abt the mistake... i got my code to work already... thanks for the help
based on this java doc i thought ArrayComparator already being defined by java
import java.util.*;
public class c02 {
public static void main(String[] args) {
String[][] catalogue = new String[99][4];
boolean endProg, inputOK;
String input,...
ic... thanks alot for answering my noob qn.. :)
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...
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...
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...
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...
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...
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??
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...
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
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...
have already checked that and the path is correct...
my XP did not define a source name... also my code specify the access file through the filename variable...