Please tell me how to transfer values from one method to another wherein the second method is trying to access the value from the first method and the second method takes in parameter from some other method.
pulkitmalhotra
Recommended Answers
Jump to Postpublic static int firstMethod() { int foo = x; // do something with foo return foo; } /* second method takes parameter of same type as first method returns */ public static int secondMethod(int bar) { int out = bar; // do something with out return out; …
Jump to Postbetter try to put your idea into words that actually make sense, because as it stands you make no sense at all.
All 8 Replies
darkagn
315
Veteran Poster
Featured Poster
pulkitmalhotra
jwenting
1,889
duckman
Team Colleague
pulkitmalhotra
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
pulkitmalhotra
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
orko
36
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.