ahmad mayahi

Greenhorn
+ Follow
since May 10, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ahmad mayahi

Is good
Thanks for you help
10 years ago
I need to create the ScaryException then i can catch it. Right?
10 years ago
Thank you
But i mean i need a local db system like "MySQL server" easy and powerful.
Did you import ScaryException Class in your program.

Sorry. What do you mean "import"? Should i import the class? :S
10 years ago
Hi
I want to create a small application and i need a good local database system.
My question is:
* What is the best Local RDBMS (using SQL)?
* What's the best db system for the J2ME?
Thanks
Hi
Error is:
10 years ago
Hi
I can't create a "ScaryException" from this code:


Can anyone explain to me why i can't create it?
10 years ago
IS NOT WORKING:
It says:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method play() is undefined for the type Animal

at myClass.main(myClass.java:35)
I want to know how can i access to the play with (polymorphism)?
10 years ago
Hello
I'm a new programmer in JAVA. And i need to understand the "interfaces" with (real examples).
Let me to explain it:
This is an abstract class for polymorphism for the Animals (Dogs, Cats etc...):

This is an interface just for them (Tame) Animals.

I need to implements the Tame interface to the "Dog". As you know dog is a tame animal.

I have another class is for the Lion. Lion is not a Lame.

My problem is:
I can't access to the "Dog" (interface) via the polymorphism with this code:

IS NOT WORKING!!
But i can't access to it via the interface:

* Why i can't access to the "play" method via Animal?
* We know the interface is 100% abstract. If so why i can create a conrete class of it?
Thanks a lot
10 years ago
Complete code:
10 years ago
Is not compiled.
Error is:
10 years ago
Hi
Why this code is not working?
I can't set a number to the array!!

10 years ago
Hello
I'm so confused about the versions numbers of JAVA.
I know the JAVA is a programming language and has many technologies like J2SE, J2ME, J2EE
But what is JAVA version (2)? Why we said "J2" what is exactly?
When i browser the sun Inc, portal i can't find (JAVA2)! there's JDK 6 and JRE 6 too!!!
I don't know whats JAVA 2 and JDK 6 ? and JRE?
anyone can explain them?
10 years ago