Alpha Mak

Greenhorn
+ Follow
since Sep 05, 2001
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Alpha Mak

I meant examples if u dont mind friend cause i can move data from textfield to the out stream but not to an input stream cause i want data to be input through an input stream from a text field. Hope u get it now. Thanx for the response again

I meant examples if u dont mind friend cause i can move data from textfield to the out stream but not to an input stream cause i want data to be input through an input stream from a text field. Hope u get it now. Thanx for the response again

16 years ago
thanx Val, but was kindda expecting more. But atleast you responded and I appreciate that.
thanx Val, but was kindda expecting more. But atleast you responded and I appreciate that.
16 years ago
Hi friends,
Back with yet another problem, I know you'll be prompt to answer cause I've not been disappointed by you all as yet.So here it comes ""How can I move my data from a TextField in a Frame to an InputStream.
Thank to all of you friends.

Hi friends,
Back with yet another problem, I know you'll be prompt to answer cause I've not been disappointed by you all as yet.So here it comes ""How can I move my data from a TextField in a Frame to an InputStream.
Thank to all of you friends.

16 years ago
That's true Bindesh but how would you refer to this array

Originally posted by Bindesh Vijayan:
Hi Friends,
Is there any difference between these two statements
int[] arr={1,2,3,4};
int[] arr=new int{1,2,3,4};//code#2
To me the only difference is that the second code does'nt need any variable to hold it's reference.
Am I right with my understanding?
Please clarify.
THANKS


Thanks Paul for you reply
but ques is what if my method returns any other data type than string???

Originally posted by Paul Stevens:
The short answer is yes. You didn't ask for a good example
public class Temp {
public static void main(String[] args) {
Temp t = new Temp();
String s = 1 > 2 ? t.method1() : t.method2();
System.out.println(s);
}
public String method1() {
return "method1";
}
public String method2() {
return "method2";
}
}


> can we call methods in TERNARY OPERATORS ;
> e.g, x==y ? method1() :method2();
> ps explain with a example or two.
Such a powerful method such a little explaination.
> thanking you in advance
> Alpha.
Heard a lot about java ranch,nice job
> you people are doing for java addicts.
> I've a Q,hope you can help me out.
> My question is
> about interfaces.Why sould we implement
> interfaces,and where.Since they have no non-abstract
> methods we do make thier adapters and use where
> needed then why interfaces and secondly how can I
> know thier level in heirarchy(I mostly get lost
> trying to remember them when I'm in API's).
> Hope you can help.
>
> Alpha Junior.