File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Assigning Array references Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Assigning Array references" Watch "Assigning Array references" New topic

Assigning Array references

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 224
I am creating array and assigning reference of one to another.
But it giving error error "f1 cannot resolve"?

Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Are you not getting a bit mixed up between f-one and f-ell?

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
raja kanak
Ranch Hand

Joined: Oct 18, 2006
Posts: 135
The code compiles & runs fine. The output is f2[0]= 0

I agree. Here's the link:
subject: Assigning Array references
It's not a secret anymore!