Showing results 1 to 40 of 260
Search took 0.02 seconds.
Posts Made By: joshmo
Forum: Oracle Nov 16th, 2008
Replies: 1
Views: 378
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
Re: Slight Problem with arrays.

The post was clear but I have managed to figure it out anyway. Thanks
Forum: Java Oct 27th, 2008
Replies: 20
Views: 966
Posted By joshmo
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
Posted By joshmo
Re: Accessing variables of another class

yep. that helped.. thanks
Forum: Java Oct 27th, 2008
Replies: 2
Views: 424
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
Re: How can I access methods or attributes from a subclass

well like I said am just tryna learn and satisfy my ego.
Forum: Java Oct 21st, 2008
Replies: 13
Views: 726
Posted By joshmo
Re: How can I access methods or attributes from a subclass

Yep. That is what I was looking for. Thanks alot
Forum: Java Oct 21st, 2008
Replies: 13
Views: 726
Posted By joshmo
Re: How can I access methods or attributes from a subclass

That is not it. I want A to be able to use a method in B..Is that possible
Forum: Java Oct 21st, 2008
Replies: 13
Views: 726
Posted By joshmo
Re: How can I access methods or attributes from a subclass

I get that kind of calling. What i want to do is the other way round. I want to access the method in the subclass from the superclass. Is there any way this is possible?
Forum: C Oct 21st, 2008
Replies: 6
Views: 319
Posted By joshmo
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
Posted By joshmo
Re: if staement

More about it here http://home.att.net/~jackklein/c/inttypes.html
Forum: C++ Oct 21st, 2008
Replies: 3
Views: 263
Posted By joshmo
Re: Output multiple values

then you need to use dynamic arrays
Forum: Java Oct 21st, 2008
Replies: 13
Views: 726
Posted By joshmo
Re: How can I access methods or attributes from a subclass

I know the other way round can be done. What about accesing the methods? I dont want to use overridding i dont know if there is a way using casting or polymorphism because that stuff is alittle...
Forum: Java Oct 20th, 2008
Replies: 13
Views: 726
Posted By joshmo
How can I access methods or attributes from a subclass

Hey all. Iam new to java and I have been trying to do something that has played me abit. I want to use an attribute or a method from a subclass and accesing it from the super class. Something like...
Forum: Java Sep 4th, 2008
Replies: 2
Views: 271
Posted By joshmo
Forum: Java Sep 4th, 2008
Replies: 2
Views: 271
Posted By joshmo
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
Posted By joshmo
Re: problem with multiple classes

oh :).. that was my silly mistake. thanks to ya'll
Forum: Java Aug 30th, 2008
Replies: 12
Views: 648
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
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
Posted By joshmo
Forum: Java Aug 27th, 2008
Replies: 6
Views: 779
Posted By joshmo
Re: Problem with constructors - Error "Cannot find symbol constructor"

Thanks. that worked but I need some more clarification. In the class Book, the constructor is "public void Book(..)" How come this does not give any errors?
Forum: Java Aug 27th, 2008
Replies: 6
Views: 779
Posted By joshmo
Re: Problem with constructors - Error "Cannot find symbol constructor"

Iam getting the same error message below from line 115 to line 117
"cannot find symbol constructor Chapter(java.lang.String,int)"
Forum: Java Aug 27th, 2008
Replies: 6
Views: 779
Posted By joshmo
Problem with constructors - Error "Cannot find symbol constructor"

Hey all..am quite new to Java and I have encoutered a problem with my program. I am getting the error message "cannot find symbol constructor". I have tried to figure it out but I have failed. I have...
Forum: C++ Aug 15th, 2008
Replies: 3
Views: 373
Posted By joshmo
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...
Showing results 1 to 40 of 260

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:04 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC