Me again please a little stuck ere for a question
public void SetValue in (replacementvalue)
if ((replacementvalue >= 0) && (replacmentvalue < limit))
value = replacementvalue
Just a couple of questions id like to ask about this ,
what would happen when the setvalue is called with an illegal value , is this a good solution and also is there any better one , im a little stuck with all this java stuff ,
also what would happen if i changed the (replacementvalue > 0 ) rather than >= 0 ,
also what would happen if I changed the logical operator to a || (or ) one , those this mean it only needs one to be true for the expression to be done ,
ah java is a little hard if you ask me . help appreachiated
what would happen when the setvalue is called with an illegal value nothing would happen, and no its not a good solution really, an exception should be thrown:
if(replacementvalue >= 0 && replacementvalue < limit)
throw new IllegalArgumentException("Bad data");
also what would happen if i changed the (replacementvalue > 0 )
rather than >= 0 ">" means "Greater Than", ">=" means "Greater than or equal to"
also what would happen if I changed the logical operator to a ||
(or ) one those this mean it only needs one to be true for the
expression to be done Yes.
Similar Messages
-
Important! Please use the public forum for your questions!
Dear forum visitors,
Please always use the forum mechanism to ask technical, workflow and creative questions and do not contact me and other Community Experts or Adobe employees with private messages. We all appreciate your trust and respect for our work, but there are two things you should consider:
- Just like you, we all have a "normal" life. Sending private messages does not accelerate the process, if we are not around. Just like I was not here the last 24 hours 'cos I was visiting my grandmother and then dancing the night away, others have children and a family to take care of. And I think a bit of sleep is okay every now and then, too.
- Results from private messages are not covered by the search engine and archiving mechanism for apparent reasons. Therfore at some point that info will be lost and future visitors looking for help will not be able to find it, meaning that we will have to answer the same questions over and over. This can of course not always be avoided, but in the interest of everyone, we should try to cut down redundancy and spent our time as efficiently as we can. Personally I don't get paid for this, so I'm investing my spare time. Again, I think doing a few other things in it instead of constantly monitoring forums would be okay...
Thanks for your understanding.
MyleniumHello
Iam tryn to use Adove but its telling me tha i
h ave to accep end user license how can i do that can some one please help -
Hi,
I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while."
I rebooted and it didn't fix the problem. I just got my iPhone 4s (unlocked right from Apple) several weeks ago.Siri has been a bit more erratic than usual in the last week or so. Apple has announced a major announcement for 9/12. Conclusions are left to the reader.
Best of luck.
(Occasionally from Lower Economy, Colchester County). -
siri say ( i'm really sorry about this , but i can't take any request right now , please try again in a little while )
please help me >>>>Thanks James, I just tried Siri again and it worked fine on two tests.
Does this Problem happen often? I have had my Iphone5 for about two weeks and this is the first time I have
had the problem. My 3gs used Siri to dial phone numbers or use the address book to dial and I never had a problem with it.
Thanks for posting the system status page. -
i'm really sorry, i can't take any requests right now, please try again in a little while
Why is happening? And this as been going for two week nowThis type of response means that Siri can't connect to Apple's servers, so this means Apple's severs are down. if this continues over a long amount of time ask someone at an Apple store.
-
siri keeps saying she cant take any request right now please try again in a little while she was working fine when i first talked to her please help
You may want to try and reset all settings
Settings>General>Reset>Reset All Settings
Note: Data will not be affected but settings for Wi-Fi, FaceTime, Message, Home Sharing, Wall Paper, Sound etc will be reset -
When i type in my correct password on the login screen and press enter it just goes to a blue screen for a few seconds then goes back to the same login screen again, please i need help?
You can take some of the steps here, #4, #5 or even trying a #18
Step by Step to fix your Mac
but I suspect your going to first have to create a data recovery drive
Create a data recovery, undelete boot drive
to get your data off the machine,
then do a #20 to eliminate the bad sectors as that's why your getting the "pinwheel" it's getting a delay reading from the drive, right when your trying to log in too, what a bad spot for it to happen.
Step by Step to fix your Mac -
Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.
The problem was solved by Apple Technical Help. The process is as flollows:
1. Open Safari
2. Menu item Safari-Reset Safari - remove all website data - reset
3. Now if you try to login on iTunes connect it will work. -
I have the 11" MBA, I was updating the software to Lion X , which is free update for me. I was charged 1 rupee on my account yesterday, BUT today again I was charged 20 USD for iTunes ( which I didnot purchase). Please advice.
The battery will run UP TO 7 hours.
The run time depends on what you are doing.
Anything that puts a heavy load on the CPU will reduce the run time.
There is a fixed amount of energy in a charged battery.
The faster you take energy out the shorter the run time will be.
Turn off bluetooth.
Reduce backlight to as low as is comfortable for you. I use level 5.
Watching video uses a lot of energy. -
please enter at most 70 letters or numbers for street address, i am facing this issue with that i am unable to downloads few apps, as it is asking for this question and again and again,
i tried all letters and address more 100 hundred also nut no of use,please enter at most 70 letters or numbers for street address, i am facing this issue with that i am unable to downloads few apps, as it is asking for this question and again and again,
i tried all letters and address more 100 hundred also nut no of use, -
The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home on my wi Fi is the only time it works correct. Bill. [email protected] 708 752 3667
http://lifehacker.com/5852948/what-to-do-if-youve-forgotten-your-iphones-passcod e
-
HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS IN ADVANCE
try this website this should help you http://helpme.viber.com/index.php?/Knowledgebase/List/Index/1/iphone
-
I'm unable to send crash reports to Apple.
Message says "Submission failed Please try again later"
This has been happening for about 3 weeks.
How do I send crash reports?If you're actually using Mac OS X v10.5.8, as your profile says, you're wasting your time trying to submit crash reports to Apple.
-
Siri go down all day long! did not respond to any questions, always: "I'm really sorry about this, but i can't take any re questa right now. Please try again in a little while. " please help me!
very very thanks!!!
-
Please update the functional specifications for Vendor Balance Report
Dear All,
Please update the functional specifications for Vendor Balance Report with
proper descriptions.
Please include
1. How your selection screen should look like..
2. Output format ( in an excel sheet)
3. Logic for every field in the output format (viz. .. how do link the
vendors from the selection screen to the BKPf and BSEG tables, how do you
find open and closed items in BSEG , etc.)
Please avoid statements like 'The total value of all the break-up should
tally with the balance as shown in FBL1N for a given vendor for the given
day.'
You need to give the logic for the FBL1N, in that case.
Regards
Rama MohanHello again,
Regarding having them update the specs, one can dream. Dreams are free. LOL. Hopefully the memory makers will update their specs as more makers start supporting a large memory configuration.
The 4GB sticks I am using are http://shop.kingston.com/partsinfo.asp?ktcpartno=KTL-TP667/4G
I did not do an extended test of the sticks in my MBP. Their home is in the ThinkPad I have because it is running Windows Server 2008 with Hyper-V.
As you can see from the link above, these little suckers are pricey. But consider the price of 2GB SoDIMMs were $950 when they entered the market a couple of years ago. The price will drop.
I asked the Kingston rep that sent these to me if online sites like newegg.com would have them soon. She indicated no, but the corporate buying sites like CDW and Zone would. So check around. They just started shipped a couple of weeks ago so be patient.
If you have any other questions, please stop by http://blogs.technet.com/keithcombs/archive/2008/07/05/testing-my-apple-macbook- pro-with-8gb-of-ram.aspx and ask there. I'll see them much more quickly.
Cheers,
Keith Combs
Microsoft
Maybe you are looking for
-
A couple weeks ago, my old, old laptop finally breathed its last breath and shut off suddenly while I was using it. Various parts of it were broken anyway so I got a new one rather than try to figure out what was wrong with it. All of my files were t
-
okay so i tried to rent a movie but the blue rent button just turned light green for a few seconds and then went back to blue without renting it. it allows music videos to be bought but not movies. the same happens when i click buy .please help! than
-
Hi, I am trying to configure IWA using OAM.I am using IE 7.I just created a test file in IIS Server and protected it.When I try to access the file from IE,i am getting a pop up for authentication.I believe it is because of the way IWA configured for
-
Trashing preferences - what is it how to do it?
I have seen answers that say to 'trash your pferences'. What does this mean? What does it do? Are there any risks? And HOW do I do it? Many thanks.
-
my son wants my MBP but he wants to use it for class work which he needs to use Auto CAD program .... if he installs parallels or bootcamp would he then be able to install the cad program. might sound dumb but i have had no need to use PC programs on