Bala jee

Ranch Hand
+ Follow
since Sep 22, 2007
Merit badge: grant badges
For More
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bala jee

I have the following example but not sure how to call the Parent class from the child class.

Lets assume the Parent Class is defined without any package as below,



Now we have a child class inside a package called myPackage.


The class child will not compile because Parent is not in same package as child so I need to import the Parent package but Parent is not in any package so how can I make this code to work?
I really did not understand what you guys are discussing about the code? Can some one explain me what exactly happens for the code which i posted in my previous comment?
13 years ago
Hi Rob Prime,

Correct me if i am wrong, what i understood if a for,while,if and else does not have a block then only a statement is allowed and not an declaration, and both declaration and statement is allowed only if the for has a block.

so the below example will work fine is that correct,
13 years ago
But how come the same code works for the first program i have written?
13 years ago
Hi All,

The below code works fine and prints the value of j 10 times.

But I re-wrote the code by removing the flower braces("{") for the for loop but i am getting compile time errors.


The error i got was,
Loopy.java:6: '.class' expected
int j=10;
^
Loopy.java:6: not a statement
int j=10;
^
Loopy.java:6: illegal start of expression
int j=10;
^
Loopy.java:6: ';' expected
int j=10;

But I expected the value of J will be printed only once is that not the case or is it a bug in Java? Please suggest.
^

13 years ago
Hi Ab Karunaratne,

Im also new to java can we decide and learn as a group so we can learn faster. Please suggest.
13 years ago
Hi All,

I am very new to Java, I tried to learn Java couple of times long back but i failed now i would like to come back again and give one more try the help which i need here is my current is not related to Java and i will be able to spend only 2 hrs per day so how much time will i need to finish Core Java learning and what book i can refer to learn Java 1.6? Please suggest.

Im waiting for a very long time can some one reply me please?
13 years ago
I have already introuduced my self im waiting for a private message i sent you
(If i refer in my chat as NC then it means im talking to "Nitasha Chandel" and AP for "Amit Paleja" just to make sure things are clear) So the plan for today is we need to dicuss at 8:00 PM and arrive at a timetable and follow that daily so when NC you are avaliable please post your message so we can discuss in detail today and plan for what to study this week.
I don't have a prob please introduce about your self.
Yes dude im intersted to start stuyding with you and i hope you said new is to java right? Im also new to java first we have to decide the timing Im from India,Bangalore how about you please reply today(sunday) if possible.
Im confident that i can go for SCJP 6 only but i dont know how to change my message title as "SCJP6 - study group" can someone help me? also can someone join with me for studying SCJP 6.
Im actually a beginner and i feel scjp5 will be easier than scjp 6 what do you think ?
I want to prepare for SCJP6 and im a beginner is there anyone who can join with me to learn?