I'm trying to learn data access with Java myself, but does this error indicate a problem with your search query? It sounds like the connection is being made just fine:
Can you post the code...
Type: Posts; User: jasonm
I'm trying to learn data access with Java myself, but does this error indicate a problem with your search query? It sounds like the connection is being made just fine:
Can you post the code...
/**
* Returns the number of floats in this list.
* @return the number of floats.
*/
public int countFloats() {
for (int i=0; i<n; ++i)
// TODO: implement this method.
...
What type is a? Is it the float array that belongs to FloatList? Java arrays are objects. I could be wrong, but I don't think they have an append() method. Could you provide the actual error...
Primitives are simple data types, built into to Java language, and just hold a particular kind of value - they don't have methods. You can read about all of the primitives here. So, "float" is a...
What I am trying to get you to do is show me how you expect your class to work, as well as how it is working now. Without being able to do this, how do you know if your code is right or wrong?
...
Okay, so now what do you expect to happen when you run this, and what actually happens? For simplicity, maybe change your example to eliminate the randomness (in the for(...) loop) for the time...
These ones can drive you crazy, it took me a couple scans over your code to spot it.
while (guesscheck = true) {
You wanted a "==" in there :)
What this does is first assign guesscheck...
Your first two lines didn't register with me earlier, you do show the definition of LinkedStack.
LinkedStack implements I_LinkedStack, but that isn't the same thing as I_LinkedStack<T>. Is...
I am not familiar with the LinkedStack class. I am assuming this is the class you are using?
public String iterableToString(Iterable<T> stack)
iterableToString will accept any object...
Can you provide an example using your FloatList? Indicate what you expect to happen as well as what actually happens. That should provide a good starting point for getting this coded up.
A good place to start would be to write out a skeleton for your class, Die. Write the class definition for Die, define its member variables* and methods. You can leave the bodies of the methods...
Maybe I should take a step back. Have you worked on applications that implement data access through DataSources rather than directly using the DriverManager?
How does the application retrieve the...
Are you sure that is the output you are getting? I pasted your code in directly, and the output I see is:
0 is a palindrome number
0 is not a palindrome number
0 is not a palindrome number...
Hello,
I am new to the forum, and while I have some general programming experience and education, I'm pretty green when it comes to Java technologies. Currently, I'm looking for some help...