Forum: Oracle Nov 16th, 2008 |
| Replies: 1 Views: 378 problem with update I have written my simple query using update and in a file with a .sql extension. However, I cant seem to update my table and yet at the end of the input it shows me 1 row updated I would also want to... |
Forum: Java Nov 9th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. Am sorry but am not getting this at all. I understand what you are saying and that is what I had in mind. But the details I want to store are in another method. So I dont know how to go about it. I... |
Forum: Java Nov 8th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. I dont think the above does the trick. It looks like it gets the X and Y points and also their attributes maybe. What I want to do is after you get the X and Y points say (1,2), get user input and... |
Forum: Java Nov 7th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. That is how I get the problem. X and Y are input by the user in one method with attributes. What I want to do is to be able to prompt the user from another method for coordinates x,y and then display... |
Forum: Java Nov 7th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. I managed to figure out the array problem. Thanks alot. However, I now want to solve something different. I want a user to enter x and y values to get the details in those coordinates. I have created... |
Forum: Java Nov 1st, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. The above post is all in one class and not in different classes like I had wanted. Anyway I have done something and the code puts the mark where I want it to be. However, on a second loop to check if... |
Forum: Java Oct 29th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. Well the whole assignment is about a level of a game but at the moment I would only appreciate help with the array part and try to figure out the rest.
First Class- I am trying to initialize an... |
Forum: Java Oct 29th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. Like I had earlier mentioned this was just a draft code to show what I wanted to do and not the original one. Thank you for the suggestion on the array but I cant seem to figure out how to go about... |
Forum: Java Oct 28th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. I have posted an edited version of the original code. It compiles and runs and is evident of what I am trying to do. Please Ignore any inconsistancies or anything concerning classes and help out on... |
Forum: Java Oct 28th, 2008 |
| Replies: 20 Views: 966 Re: Slight Problem with arrays. I figured out on how to make the arrays work but I cant seem to find out why the values that have been stored in an array in a specific method cannot be seen in another. Maybe I just didnt get it... |
Forum: Java Oct 27th, 2008 |
| Replies: 20 Views: 966 |
Forum: Java Oct 27th, 2008 |
| Replies: 20 Views: 966 Slight Problem with arrays. I have got two arrays. One for initializing and another for displaying. The display array always shows nothing if the initializing array has not been called. The problem now though is that if I want... |
Forum: Java Oct 27th, 2008 |
| Replies: 2 Views: 424 |
Forum: Java Oct 27th, 2008 |
| Replies: 2 Views: 424 Accessing variables of another class Hey all. I would like to find out how i can access/ get the value of a variable in a different class. this is part of the code which shows what I was trying to do.
public class A{
protected int... |
Forum: Java Oct 26th, 2008 |
| Replies: 3 Views: 375 Re: Simple 2D Arrays problem I couldnt post the whole code that is why i posted just part of it. Could you please explain to me the use of something like "arr.length" in the program? |
Forum: Java Oct 26th, 2008 |
| Replies: 3 Views: 375 Simple 2D Arrays problem I was reading a tutorial about 2D arrays and I decided to construct something. I managed to construct something but when I compile I get "null" as my output. I cant seem to figure out the problem.... |
Forum: Java Oct 22nd, 2008 |
| Replies: 10 Views: 531 Re: Another Java Problem with classes the variable q is not declared in the class A and I dont want to declare it. Is there anyway this can be done? I tried that and it says "non-static variable cannot be referenced from a static... |
Forum: Java Oct 22nd, 2008 |
| Replies: 10 Views: 531 Re: Another Java Problem with classes Sorry I didnt mention that assuming all the set and get methods are in place. Oh and the q in class C is public not private. Is there a way i can use this q in the class A? |
Forum: Java Oct 22nd, 2008 |
| Replies: 10 Views: 531 Another Java Problem with classes Hey all. I have another problem with classes. I have 3 classes A, B and C. B extends C and class A is where objects from B and C will be used. Below is the syntax of what am trying to say
class A{
... |
Forum: Java Oct 21st, 2008 |
| Replies: 13 Views: 726 |
Forum: Java Oct 21st, 2008 |
| Replies: 13 Views: 726 |
Forum: Java Oct 21st, 2008 |
| Replies: 13 Views: 726 |
Forum: Java Oct 21st, 2008 |
| Replies: 13 Views: 726 |
Forum: C Oct 21st, 2008 |
| Replies: 6 Views: 319 Re: HELP!!!! a return statement must be accompanied by what a function returns. Void functions dont return values and you need to indent your code as well as using braces |
Forum: C++ Oct 21st, 2008 |
| Replies: 5 Views: 299 Re: if staement More about it here http://home.att.net/~jackklein/c/inttypes.html |
Forum: C++ Oct 21st, 2008 |
| Replies: 3 Views: 263 |
Forum: Java Oct 21st, 2008 |
| Replies: 13 Views: 726 |
Forum: Java Oct 20th, 2008 |
| Replies: 13 Views: 726 |
Forum: Java Sep 4th, 2008 |
| Replies: 2 Views: 271 |
Forum: Java Sep 4th, 2008 |
| Replies: 2 Views: 271 Problem intepreting error hello. Am having a hard time intepreting this java error. The last post made somethings clear but I dont know what am missing. I am getting the error "cannot find symbol construtor... |
Forum: Java Aug 30th, 2008 |
| Replies: 12 Views: 648 |
Forum: Java Aug 30th, 2008 |
| Replies: 12 Views: 648 Re: problem with multiple classes Sorry for the obvious questions but you know what seems to be obvious to one is not obvious to another. Here is my updated code with a few more hitches.
class Book{
private String... |
Forum: Java Aug 28th, 2008 |
| Replies: 12 Views: 648 Re: problem with multiple classes am getting the error ") expected" at line 68..Is there a way I can call the method printInfo from the class mainPrg? maybe something like calling the class Chapter from mainPrg which can call the... |
Forum: Java Aug 28th, 2008 |
| Replies: 12 Views: 648 Re: problem with multiple classes I understand that so how can I rectify that and how come if I had only two classes i.e Chapter and mainPrg it would have been able to access it? (Am basing this on the fact that I have tried the... |
Forum: Java Aug 28th, 2008 |
| Replies: 12 Views: 648 problem with multiple classes Hey all.. I have 3 classes in my program but Iam having trouble accesing a method in another class. Iam getting the error message cannot find symbol method printInfo(). Below is the code
class... |
Forum: Java Aug 27th, 2008 |
| Replies: 6 Views: 779 |
Forum: Java Aug 27th, 2008 |
| Replies: 6 Views: 779 |
Forum: Java Aug 27th, 2008 |
| Replies: 6 Views: 779 |
Forum: Java Aug 27th, 2008 |
| Replies: 6 Views: 779 |
Forum: C++ Aug 15th, 2008 |
| Replies: 3 Views: 373 Re: need help with function declarations The function declaration should be identical to the function definition exept that you do not need to put a semi colon after the function definition. Another easier way to do it is to put the main at... |