Can I do in Java the same thing I do in Pascal ?
In Pascal, I may write a procedure :
procedure poser_question (VAR question: t_question);
The parameter question is passed by reference, so it works as a resultat parameter.
According to my Java book, parameters are only passed by value, so I cannot have the construction :
Combi question = new Combi ();
poser_question (question);
Is it exact ? Or may 'question' in calling poser_question (question) be a resultat parameter ?
Jean-Jacques wrote:
In Pascal, I may write a procedure :
procedure poser_question (VAR question: t_question);
The parameter question is passed by reference, so it works as a resultat parameter.
According to my Java book, parameters are only passed by value, so I cannot have the construction :
Combi question = new Combi ();
poser_question (question);Java passes variables by value, but there are two separate kinds; primitive and reference variables. In your example you're passing a Combi object reference (by value). This means that a reference (pointer) to the Combi object becomes available within the poser_question method. You can use this reference to change fields in the Combi object (which exists outside poser_question).
The above is equivalent to what would happen in Pascal if you were to pass a Combi record by VAR.
Similar Messages
-
Can i transfer everything from one ipad to another so both have exactly the same things
Can i transfer everything from one ipad to another so both have exactly the same things?
Yes. Copy your apps and other iTunes purchases/downloads to your computer's iTunes via File > Transfer Purchases (File > Devices > Transfer Purchases if you have iTunes 11 on your computer), then backup up the first iPad and restore that backup onto the second iPad.
Backups and restores : http://support.apple.com/kb/HT4079
Things that aren't included in a backup include the contents of the Music and Videos apps (but they should be on your computer's iTunes) and photos that were synced from a computer. Also you will need to enter your passwords (email, wifi, website) on the second iPad - they won't be restored onto a different device, only back onto the device that the backup came from. -
I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???
Welcome to the Apple Community.
Enter the details of her second account at system preferences> mail, contacts & calendars. -
When I connect my ipod to my computer it opens my documents and won't show up in my itunes and I have unistalled then reinstalled itunes and reset my ipod twice and it stills does the same thing how can I make it so that it shows up in my itunes?
Try
iOS: Device not recognized in iTunes for Windows
I would start with
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
Before you reinstall the Apple software, also remove iCloud vi Control Panel Remove programs. The reinstall the Apple programs
New cable and different USB port?
Runs this and see if the results help with determine the cause
iTunes for Windows: Device Sync Tests
Try on another computer to help determine if computer or iPod problem -
Whenever i try to buy a new song or download an app my ipod says that "your apple id has been disabled" i have changed my password several times and it still says the same thing. What can i do???
This may provide the answer:
Apple ID: "This Apple ID has been disabled for security reasons" alert appears -
Even if an iPod 5 is Stolen , and i buy another new one can, my old iPod5 deletes what ever its was on my iCloud account? and transfer the same thing as my old one to a new one?
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
-
If I make a new iTunes account with the same credit card number can I still have the same thing I bought from my other account?
Not without buying them from the new iTunes Store account.
(84283) -
My ipad mini is not connecting to the wifi network. I have the correct network and password chosen, but the message I get is that "unable to join". I have reset my ipad and it still says the same thing. What can I do about this?
Hey Dr kris,
Thanks for the question, and welcome to Apple Support Communities.
I understand that you are having issues connecting to Wi-Fi networks with your iPad mini. The following troubleshooting assistant may lead to a resolution:
Apple - Support - iPhone - Join a network Assistant
http://www.apple.com/support/iphone/assistant/wifi/
For more in-depth troubleshooting, refer to the following article (refer to the "Unable to connect to a Wi-Fi network):
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/TS1398
Thanks,
Matt M. -
I just bought a new Iphone and when I connected it to itunes and I downloaded the backup from my last device, now I can't pass this step and every time I connect it to itunes is the same thing. And I can't download any app because problems with my account regarding the credit card but the information is correct and it says it is not!!!
You'll have to contact iTunes store support regarding your credit card information problem: http://www.apple.com/emea/support/itunes/contact.html. I'm not clear on what you're saying about your backup. Are you saying that when you connect to iTunes it's asking you to restore from backup even though you already have?
-
Ever since I updated to the IOS 6, I no longer can play my music in the car! It is plug and play! It just sits there saying connecting and nothing happens. A couple of my friends have said the same thing. Any ideas? Help please!
Hello ..do you have a history on the phone? did you get it wet? was it dropped? have you been using an authentic ORIGINAL apple charging cable?
this problem occurs when there is a short circuit in the phone... you most likely got it wet at some point and maybe didnt even realize it? The moisture in the phone hasb probablly oxidized one or several capacitors, integrated chips thereby short circuiting the phone. that is why he phone is acting erratic because these short circuits inadvertently "activates" other circuits.. eventually the phone will not turn on anymore- the heat will stress the citcuit board and you will have discontinuity along your main power lines and the phone will cease to function..i see this alllll the time in our shop
the fact you upgraded to ios6 will even work the phone harder because its a more powerful operating system taking full advantage of the A4 chip.. -
I've reset my PPAM before to get around Firmware lock, but I've upgraded to mountain lion and now need to do the same thing, but I can't reset the PRAM. I've heard of the chip that is on the post 2011 macs, but I must not have one? What to do? Also, I can not get start up chimes unless I have the factory startup disk in. Can the PRAM be reset with the factory startup disk in or must the mac boot from the hard drive? Need help.
Help for forgotten passcode > iOS: Forgotten passcode or device disabled after entering wrong passcode
When you have access to your iPhone again, FaceTime is a pre installed app that cannot be removed.
Try a search > iOS: Understanding Spotlight Search -
My iPad got disabled and once I waited the 15 minutes I logged in, but from then on I could not connect to server dispite having 2-3 bars of wifi signal. The same thing happened to my iphone5 at the same time although this had not been touched by my 3yr olds. My wifi is very intermittent and often it goes from 3g to GPRS on my iphone. I have reset network settings, turned devices off by home button and off button, removed sim card in phone, etc. I'm stuck.
Hi 30daysnow,
Thanks for visiting Apple Support Communities.
It sounds like you're seeing wireless connectivity issues on your iPad and iPhone.
Since you mention having unexpected behavior on both Wi-Fi and 3g (cellular) connections, see these articles for more helpful troubleshooting tips:
iOS: Troubleshooting Wi-Fi networks and connections - Apple Support
Get help with the cellular data connection on your iPad (Wi-Fi + Cellular Model) - Apple Support
The steps in these articles can help resolve the symptoms you're seeing.
Best Regards,
Jeremy -
I bought garage band from the app store and downloaded it to my mac mini. When i try to open a screen comes up explaining i need to down load missing files. I do this but when try to open GB again the same thing keeps happening! Can anyone help.
Thanks
Hugh LockwoodHi, Hugo,
In similar cases it helped to remove the GarageBand "Preferences" file from the User Library.
Open the folder
your home folder > Library > Preferences
and move the file "com.apple.garageband.plist" to the Desktop.
Then try again to launch GarageBand.
Regards
Léonie -
I updated my Iphone4S this week to the newest IOS 7.1 and now everyone who calls me says the calls are not clear, muffled. Is there something I can do to clear this? 4 people in 4 different states that called me all said the same thing.
Settings > General > Reset > Reset Network Settings
Contact the carrier to troubleshoot. -
Clicking on my e-mail link, [email protected], loads the business side link right underneath. I click on my e-mail address, the business side flashes on the screen, but again when I try to click it, the whole thing disappears.
The same thing is happening with the "reply" button drop down menu for "reply to sender" and "reply to all" menu items.It seems like you already have an old installation of Story.
You will have to remove it first before installing the latest one.
So the steps would be:
- Open 'Applications' folder in finder and move 'Adobe Story' app to Trash. Remove it from Trash too.
- Search 'Adobe Story' in Spotlight to make sure that this application is not installed on a different drive. If installed then remove that version too.
- Now download the latest version and install it. ( you can download the installer directly from: https://story.adobe.com/AIR/AdobeStory.air )
Maybe you are looking for
-
Issues after Upgrading to SP18 (WAS)
Hi all we recently upgraded our MI Server from SP 14 to SP 18 but after doing this we are not able to get any data to the device. When i check the SE37 transaction in the R/3 data is available for the User and also the same data is available in the M
-
How to Confirm the SDAs deploy order of SCA in RemoteGUI of SDM
Hello everybody, We assemblied a sca file in NWDI when we finished development. But when we used RemoteGUI to deploy the SCA file in another NetWeaver2004s engine.The Deploy order is wrong.The SDM doesn't first deploy the Library,EAR.It
-
I've got a Blackberry Bold 9900 running Software Version 7.1 Bundle 1997, my carrier is AT&T. The phone is a couple of months old after the screen died on my previous Bold 9700. I use it primarily as a phone, calendar, and address book, lots of email
-
I opened my project this morning and see this: and then this: After opening the project I see the color bars and double-click one of the missing images in the project window to relink it. After going to the location and see that all of my files are g
-
Where is the 'History Recently Closed Tabs' menu in Firefox 29
There used to be a 'Recently Closed Tabs' in the old orange Firefox 28 menu. Now it seems version 29 only has a 'Restore Closed Tabs' menu item in its 'History menu'. There seems to be no option to restore individually closed tabs. I'm always closing