Forum: Java Aug 16th, 2007 |
| Replies: 7 Views: 2,736 Thanks alpha_foobar,
It is my interest to learn and try new ways and new technology. I am learning JNI and I want to study how to debug and solve issues in JNI code.
How to debug the C... |
Forum: Java Aug 13th, 2007 |
| Replies: 7 Views: 2,736 Thanks alpha_foobar,
You mean there is no integrated way to debug Java part and C part -- debugging goes through Java code into C code and vice versa?
regards,
George |
Forum: Java Aug 12th, 2007 |
| Replies: 8 Views: 3,469 Thanks jwenting,
I want to use getObject method to get the value of each column,
then use equals method of java.lang.Object to compare two columns' values. Is that method workable?
I have... |
Forum: Java Aug 12th, 2007 |
| Replies: 8 Views: 3,469 Hi jwenting,
I want to get the data from each column in a unified way and compare in a unified way. Any ideas?
regards,
George |
Forum: Java Aug 12th, 2007 |
| Replies: 8 Views: 3,469 Hi masijade, any ideas?
regards,
George |
Forum: Java Aug 10th, 2007 |
| Replies: 8 Views: 3,469 Thanks jwenting,
I am not going to compare the column types, but content of table -- rows.
The two tables are of the same schema -- same column names and column type.
I am interested... |
Forum: Java Aug 10th, 2007 |
| Replies: 7 Views: 2,736 Hello everyone,
I am wondering if I want to debug JNI application (upper layer Java and lower layer C), are there any tools to debug through Java code to C code and return back from C code to... |
Forum: Java Aug 9th, 2007 |
| Replies: 8 Views: 3,469 Hello everyone,
I am using JDBC to compare the content of two database tables -- writing a general function and two tables are input. The two tables have various types of columns, like VARCHAR,... |
Forum: Java Jul 26th, 2007 |
| Replies: 5 Views: 6,571 Hi ~s.o.s~,
I can not find any samples of how to use @override. Do you know where to find?
regards,
George |
Forum: Java Jul 26th, 2007 |
| Replies: 5 Views: 6,571 Thanks TheGathering,
The reference is very informative. Do you have any samples of how to use @override?
regards,
George |
Forum: Java Jul 25th, 2007 |
| Replies: 5 Views: 6,571 Hello everyone,
I am using JDK 1.4 and there is a compiling a 3rd party program error because of un-recognized word @override. Could anyone let me know what is the function of @override and in... |
Forum: Java Feb 10th, 2007 |
| Replies: 3 Views: 1,246 Thanks jwenting. I am surprised that native code fail makes JVM crash. Could you show me some popular cases why native call could cause JVM fail please?
One sample I could think of is, the JVM can... |
Forum: Java Feb 9th, 2007 |
| Replies: 3 Views: 1,246 Hello everyone,
When running my program on Java JVM 5.0, there are strange stack errors. What may be the root cause?
(foo.dll is my JNI invoked native library.)
--------------------... |
Forum: Java Feb 7th, 2007 |
| Replies: 1 Views: 729 Hello everyone,
I am wondering what is the differences between Java HotSpot(TM) Client VM and the J2SE VM I downloaded from java.sun.com?
Are they the same thing? Why Hotspot VM has client... |
Forum: Java Dec 7th, 2006 |
| Replies: 1 Views: 4,125 Hello everyone,
From the available documents from java.sun.com, I can not find rich information about this option, which is used to tune memory of JVM. Are there any samples/documents of this... |
Forum: Java Nov 10th, 2006 |
| Replies: 0 Views: 5,117 Hello everyone,
I am wondeirng how to convert an ObjectInputStream to a byte array, then convert the array back to ObjectInputStream -- should I convert the array back to ObjectOutputStream... |
Forum: Java Nov 7th, 2006 |
| Replies: 0 Views: 2,588 Hello everyone,
When reading from a socket, I got error,
java.io.StreamCorruptedException unexpected end of block data
I only get it very randomly and very hard to reproduce. Does anyone... |
Forum: Java Feb 27th, 2006 |
| Replies: 5 Views: 5,472 hooknc,
Very valuable advice. Thanks!
regards,
George |
Forum: Java Feb 25th, 2006 |
| Replies: 5 Views: 5,472 Hello everyone,
I have written the folllowing scripts, just want to output "Foo is true." when the property foo is set to true. But when using Eclipse to run the simple script, there are... |
Forum: Java Feb 22nd, 2006 |
| Replies: 0 Views: 1,587 Hello everyone,
I want to use JDBC to access DB2 database. I also want to display the content of a specific table (table name is configurable) into web page (just like what is displayed when we... |
Forum: Java Jan 10th, 2006 |
| Replies: 11 Views: 8,539 jwenting,
It is only high level general perspective. I am wondering what do you mean in details.
Anyway, let us come beck to the original question, no matter using 1 dimensional array or... |
Forum: Java Jan 10th, 2006 |
| Replies: 11 Views: 8,539 jwenting,
Could you please provide more detailed descriptions of the above points? For example, "the added address space needed for the accessfunctions" and "optimisations the JVM may employ... |
Forum: Java Jan 9th, 2006 |
| Replies: 21 Views: 10,542 jwenting,
I think it should be 2!*2!.
I agree. I am just wondering how to use program to implement it. |
Forum: Java Jan 8th, 2006 |
| Replies: 11 Views: 8,539 jwenting,
Why? I think any array (no matter of how much dimension it has) can be represented as one dimensional (linear) array. For example, we can create a method called element (i, j) to... |
Forum: Java Jan 8th, 2006 |
| Replies: 21 Views: 10,542 jwenting,
Thank you very much for your reply! I understand your points. The current issue is that, I do not understand the relationship between your permutation algorithm and my question.
... |
Forum: Java Jan 8th, 2006 |
| Replies: 21 Views: 10,542 iamthwee,
Do you mean if the input string (which we will use pattern to match) is ABC, we should at first permutate it to (ABC, ACB, BAC, BCA, CBA, CAB)?
I do not know why you should do... |
Forum: Java Jan 8th, 2006 |
| Replies: 11 Views: 8,539 iamthwee,
It is meaningful. It can save space (foot print) if we represent a matrix using one dimensional array and we need to transpose the matrix frequently.
Anyway, do you have any... |
Forum: Java Jan 7th, 2006 |
| Replies: 21 Views: 10,542 jwenting,
What do you mean "With 1 character that's 1 permutation, with 2 you're up to 2, with 3 it's 6, so with n you're up to n! options."? I can not understand it. Could you please show... |
Forum: Java Jan 7th, 2006 |
| Replies: 11 Views: 8,539 jwenting,
I think it is possible to represent a matrix by a linear array -- in that way, I think we can handle that. Do you agree?
Anyway, if you agree with that, do you have any ideas? |
Forum: Java Jan 6th, 2006 |
| Replies: 21 Views: 10,542 jwenting,
Thank you very much for your reply! I think your method only checks whether a pattern matches a given string, is that correct? But my problem is that, I want to find out the... |
Forum: Java Jan 6th, 2006 |
| Replies: 11 Views: 8,539 Hello everyone,
I am wondering how to transpose a matrix (m * n) with only constant space complexity O (1). (The transpose algorithm should execute/operate on the original matrix.)
thanks... |
Forum: Java Jan 5th, 2006 |
| Replies: 21 Views: 10,542 jwenting,
Good idea! I still have some detailed questions about your method, especially "Call repeatedly on the parts of the string that aren't wildcards". Could you provide some sample... |
Forum: Java Jan 3rd, 2006 |
| Replies: 21 Views: 10,542 jwenting,
For a number of reasons, I can not use regexp -- it is up to project lead. And up to me, I am asked to implement from scratch. :-)
I think using indexOf() is a very good idea!... |
Forum: Java Jan 3rd, 2006 |
| Replies: 21 Views: 10,542 jwenting,
I fully agree with you. In my specific application, I can not use that regular expression library and I have to implement this string matching algorithm from scratch. Do you have... |
Forum: Java Jan 3rd, 2006 |
| Replies: 15 Views: 13,894 Agree. It is my typo. I think you have understood my idea now.
The two issues do not have any relationships. They are just two algorithm related issues I am meeting with currently.
Anyway,... |
Forum: Java Jan 2nd, 2006 |
| Replies: 15 Views: 13,894 iamthwee,
It is not a homework. It is for decision making solution -- like rule based intelligent solution finding application. Different rules are linked together like a graph -- while each... |
Forum: Java Jan 2nd, 2006 |
| Replies: 21 Views: 10,542 jwenting,
Your idea is very helpful! In my application, I can not use regular expression library because I want to make it a small foot-print application. So, I want to build the algorithm... |
Forum: Java Jan 2nd, 2006 |
| Replies: 21 Views: 10,542 Hello everyone,
I am working on a dictionary application implementation. I have question about a string pattern matching algorithm implementation. In this algorithm, * can be used to match any... |
Forum: Java Jan 2nd, 2006 |
| Replies: 15 Views: 13,894 iamthwee,
Maybe I have not made myself understood enough. I mean how to detect cycle in a directed graph -- the directed graph defined in data structure. Coule you help please?
regards,... |
Forum: Java Jan 2nd, 2006 |
| Replies: 15 Views: 13,894 Phaelax,
Maybe I have not made myself understood enough. I mean how to detect cycle in a directed graph -- the directed graph defined in data structure. Coule you help please?
regards,... |