Quick Question PLEASE HELP!!!
How would I get the length of the array calling this? I tried this and that doesn't seem to work...
public int numRows(){
return this.length;
}
platypus1 wrote:
I have an array, sorry I am new to this stuff...but I want this to work on whatever array I call it on. So if i call myNums.numRows() or myArray.numRows() so that it returns the length of myNums or myArrayYou can't add a method to an array. You need to write a class that aggregates the array, and then you can write that method, and that method should then return myArray.length.
Another option is to make the method take an argument.
Similar Messages
-
Quick Question **PLEASE HELP** .jar file?
Hey everyone, im pretty new to the java scene but I have a really quick question that hopefully someone can help me with.
I'm really interested in making a .jar file out of my code. And basically I just want to make one. but i understand there are certain things like main class's, etc. that need to be made in order to make a .jar file.
So basically Say I opened up a new project in blueJ. I made 1 new class called "main." Inside of it I had nothing for conductors and no variables declaired untill the bottom part where i write my code.
say i write...
System.out.println("hello");
and that is it.
What steps from there do i do to make a jar file and have it be able to be executed and SEE the "hello" printed somewhere NOT in blueJ??
(I understand there is something about a "static" method? Im not really sure but if somoene could enlighten me on how to make a .jar file that would be great.)
Thanks a lot everyone!
TomI don't know anything about BlueJ, but this section of Sun's tutorial explains how to
write a program that outputs a single line of text to the console:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
Deploying an application as an executable .jar file is covered here:
http://java.sun.com/docs/books/tutorial/deployment/jar/index.html
The first two sections - "Using JAR Files: The Basics" and "Working with Manifest
Files: The Basics" - contain the information you need to understand this process. -
A really quick question- please help!
How do I find out the MAC address of my airport card in my laptop! Just moved from PC to Mac so don't have a clue where to start!
Thanks,
JackClick the apple in the top left corner > click "About This Mac" > Click "More Info" > Scroll Down to Network > Click "Locations" > Scroll Down in the Right Pane about 3/4ths of the way to "Airport" > There it is
-
I can not update several of my apps that i have purchased a while back in my Apps Store on my MacPro. Because it keeps using my old @me account for iTunes and i don't remember the password or security question, Please help?
Hi AlphaCentori,
If you are having issues accessing the Apple ID that was used to originally purchase those apps, you may find the following article helpful:
Apple Support: Rescue email address and how to reset Apple ID security questions
http://support.apple.com/kb/ht5312
Regards,
- Brenden -
I want to change my apple id password but I forgot the security questions please help me some using my icloud I'd and if confirmation is must so please phone number is mine please send a code please help me my apple
Welcome to the Apple community.
If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do. -
my apple id have been blocked an i do not remember the identity or security question please help what can i do?
If your account is disabled you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
You might then need to log out of your account on your iPhone and iPad by tapping on your id in Settings > iTunes & App Storeand then log back in so as to 'refresh' the account on it.
For your security questions, if you have a rescue email address (which is not the same thing as an alternate email address) on your account then the steps half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
If you don't have a rescue email address then you will need to contact Support in your country to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699 (you can also try this link if you can't get your account enabled via the above)
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use -
Hi, I have traveled the country and have forgotten my security questions please help me thank you
Call Apple to help reset your Security Question.
http://support.apple.com/kb/HT5699 -
HT201303 I forgotten my answer of security questions, please help me. Thank you !
I forgotten my answer of security questions, please help me. Thank you !
You need to ask Apple to reset your security questions; as described in this article, it can be done in Vietnam by phoning 1-201-0288 and then 800-708-5413.
(107433) -
I cannot remember the answeres to my security questions, please help.
You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(105959) -
i want to change my security question in my apple account. but the problem is, there is no Link shown that i could reset or change my security questions. please help!!
You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(117399) -
I was hacked i kept getting emails that some purshcaes were being made when no one was downloading them and i guess they hacked my apple iD because they changed the security question and now i cant change anything without the security question please help i want to reset the security question but i cant.
You should contact Apple by phone as soon as possible. You'll need to change your Apple ID and all passwords.
See Contact Apple at the bottom right of this page.
Hope this helps. -
HT5312 i forgot my secret question, please help me this problem. Thanks
I forgot my secret question, please help me this problem. Thanks
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact
And/or see the More Like This section on the right. -
Hi I live in Iran and I forgot the answer to the security question please help me thanks
Hi I live in Iran and I forgot the answer to the security question please help me thanks
How to reset your Apple ID security questions.
Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.
This will generate an automated e-mail that will allow you to reset your security questions.
If that doesn't work, or there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
Next, go to https://getsupport.apple.com
(If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
Choose 'More Products & Services', then 'Apple ID'.
A new page will open.
Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
Click the blue 'Continue' button.
Select the contact option that suits your needs best. -
I do forgot my Apple ID security question, please help me how to rescue email address or how to reset Apple ID security questions?
From another post:
On your browser, whether Safari, Google Chrome or otherwise, navigate tohttps://appleid.apple.com.
Once here click Manage your Apple ID button and sign into your iCloud account. Here, on the left side select Password and Security and this will list options on the right side. You should be able to see an option to reset your security questions.
Note other links in realtion to rescue email address:http://support.apple.com/kb/HT5312
If you cannot see or reset your security question, or even obtaining an error, then you would have to contact Apple directly: http://support.apple.com/kb/HE57. Here you would explain the issue, transfer you to an Account Security Agent who will be able to veritfy your identity and assist you in the resetting of you security questions. -
I logged 3 times wrong security question. please help me
I logged 3 times wrong security question. please help me
Hey annamyle91,
Thanks for the question. If you are having issues with the security questions associated with your Apple ID, follow these steps:
If you forgot the answers to your Apple ID security questions
http://support.apple.com/kb/HT6170
Reset your security questions
1. Go to My Apple ID (appleid.apple.com).
2. Select “Manage your Apple ID” and sign in.
3. Select “Password and Security” on the left side of the page.
4. If you have only one security question, you can change the question and answer now.
5. If you have more than one security question:
- Select “Send reset security info email to [your rescue email address].” If you don't see this link or don't have access to your rescue address, contact Apple Support as described in the next section.
- Your rescue address will receive a reset email from Apple. Follow its instructions to reset your security questions and set up new questions and answers.Didn't receive the email?
After resetting your security questions, consider turning on two-step verification. With two-step verification, you don't need security questions to secure your account or verify your identity.
If you can't reset your security questions
Contact Apple Support in either of these circumstances:
- You don't see the link to send a reset email, which means you don't have arescue address.
- You see the link to send a reset email, but you don't have access to email at the rescue address.
A temporary support PIN isn't usually required, but Apple may ask you to generate a PIN if your identity needs to be verified.
Thanks,
Matt M.
Maybe you are looking for
-
Premiere exports and rendering too slow
I’m using Premier Pro CC on a 2012 MacPro (aluminum box) with 16gigs or RAM. I have to say that being a long time Avid Media Composer editor I am very, very pleased with the UI and overall capability of Premiere. It’s loaded with tiny nuances that Av
-
Updated to Yosemite and now my iPhone won't show up in iTunes. Visible in iPhoto though
So i've updated my iMac to Yosemite and everything is running the latest operating system. When I plug my iPhone 6 in it is visible in iPhoto but won't show up in iTunes, Any ideas? Much appreciated
-
HP Color LaserJet 1500L add windows 8.1
I can't find the driver for my printer (HP Color LaserJet 1500L) for windows 8.1.
-
Changing "Icon size" causes .ARW thumbnail image in folder to disappear and icon to appear
Is this a bug everyone is getting? Have .ARW files in a folder and it shows thumbnail images of the .ARW files, but if I increase or decrease the slider to different sizes (to view better), a icon will appear instead of the . ARW preview image. Out
-
Just bought Apple TV caught not connect with my iPhone 5 and my iPad air please help me to how to do mirrioring