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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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: 215
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

Don't get me started about those stupid light bulbs.
subject: Assigning Array references