Arjun Bajaj

Greenhorn
+ Follow
since Apr 21, 2010
I've just started learning java. I'm still in the 9th grade and wanted to learn java. Hope I will be able to learn java to pass the first certification by Sun in Java which is the Associate Certification. I want to do Artificial Intelligence in the future. For that i need to know many things and want to start from the best programming language (Java).
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 Arjun Bajaj

hey everyone,

i just ordered my book on JSP and Serverlets... The book explains how to install and run tomcat and mysql on windows... but not with linux...

i tried installing the stuff with ubuntu... but it didn't work properly...

tomcat and jdk now work... i can access my server at localhost:8080

but mysql is not working with tomcat... i dont know how to create a db and do something in a db...
i have installed mysql, mysql query browser and mysql admin in ubuntu...

can anyone help me to run mysql with tomcat...

thnx.....
8 years ago
Hey Guys,

I am reading Head First Java and i was not able to understand the concept of method overriding (something to do with arguments) and overloading...

i understood inheritance and that sub class can override a superclass but i didn't get how method overriding works and what is overriding to do with arguments and return types.

Can anyone please explain me what is method overriding and overloading??? And if you can even explain what are arguments and return types.... that would be great...

thanks....
8 years ago
hey thanks,
joanne neal, david newton and rob prime for answering.......


hey rob thanks......

i finally solved the problem using your suggestion.......

i just removed the break; method.....and in place of that i put force++

and i added a limit to the while condition and then i got like 100,000 values where those objects can be balanced......

thnx a lot everyone.....
8 years ago
hey,

i tried that but then also it didn't work......

see my current code is :




I dont get any value in the command line.......

What should i do???

please help.......
8 years ago
Hi everyone.....

I'm trying to make a program which can calculate the turning effects of rod.....

i have made this :


but i want to calculate the value which the program will get same for both moment and moment2


i tried this but i didn't work.... :



this tells me that i need a boolean rather than an int but it doesn't even allow casting...

so what should i do to get that value which is same for both the variables???

please help......its my physics homework.......
8 years ago
Hey......I'm using ubuntu and in that i tried to do so when i do this the compiler gives me an error of illegal start of expression...... what should i do.....and i dont think its the problem of my os.......it will give me this error everywhere.........

so what should i do to fix this.......

thnx.......
9 years ago
you can use the .equals() operator to compare those two objects.......
9 years ago
Hey, Actually I forgot to ask one more thing......How should i save the file which is created in a different directory under my home directory.......thanks....
9 years ago
Hey....thanks Pramod......i tried it and it worked......thanks.......
9 years ago
I was making a program and i wanted it to save entered text in different lines....

My Program >>>>



I want "Hello" and "World" to come in 2 different lines...... I tried doing writeln but that didn't work.........


So what should i do to get Hello and World in two different lines
9 years ago
Thanks Jesper......now i understood whats the reason behind the jvm changing the source code......

And today was my first day at java ranch.....I just want to tell that

Java Ranch simply rocks
9 years ago
Thanks Jeanne, Now I understood it. Its like my reference variable has a different name but it refers to the correct objects.

Thanks
9 years ago
Hey People, I just joined the forum,
I'm learning Java from Head First Java. It told me to join the forum and I think that suggestion was very helpful.

I just wanted to know I made a small program in which i created 3 objects and defined their sizes. Then I made a method which they had to follow. But when i decompiled the class i got something different.

I made :



and when i decompiled i got :




I just wanted to ask why did and similar code to that change to ???

I just wanted to ask this for my knowledge.

Thanks.......

9 years ago