Can someone tell me why
Can someone tell me why is the ctrl not returned back to the println stmt of method counter after the method counterRecursion is executed???
pgm
class Trial1
int ct=0;
void counter(String word)
counterRecursion(word);
System.out.println(ct);
void counterRecursion(String w)
if (w!=null)
switch (w.charAt(0))
case 'a':
case 'e':
case 'i':
case 'o':
case 'u': ct++;
default:counterRecursion(w.substring(1,w.length()));
class Trial2
public static void main(String args[])
try
Trial1 c=new Trial1();
c.counter("hello");
catch(Exception e)
}
What fsato4 means is never use an empty catch block:
try {
// code
catch (Exception e) {}If there's an error anywhere (as it seems it's happening) it is being ignored.
Using:
try {
// code
catch (Exception e) {
// do something with the exception, don't simply ignore it
e.printStackTrace();
}Prints any error in the console.
Similar Messages
-
Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I cannot install lightroom 5 until the upgrades from 4 are on the pc, (lightroom 3 installed off disc but 4 is a copy of the upgrade download I got when I bought it) These serial no's are legit and are registered under my account with adobe, but it still gives me the Big Red Cross when I put my serial no in! Please can someone help. I am at a loss. Thx Heidi
Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I cannot install lightroom 5 until the upgrades from 4 are on the pc, (lightroom 3 installed off disc but 4 is a copy of the upgrade download I got when I bought it) These serial no's are legit and are registered under my account with adobe, but it still gives me the Big Red Cross when I put my serial no in! Please can someone help. I am at a loss. Thx Heidi
-
Please can someone tell me why I cannot reinstall my upgrade from lightroom 4 (lightroom 3 installed off disc with serial no) my hard drive crashed, and I am trying to get lightroom 3; 4 and 5 back on so that I can link my catalogues and continue work. I cannot install lightroom 5 until the upgrades from 4 are on the pc, (lightroom 3 installed off disc but 4 is a copy of the upgrade download I got when I bought it) These serial no's are legit and are registered under my account with adobe, but it still gives me the Big Red Cross when I put my serial no in! Please can someone help. I am at a loss. Thx Heidi
BrightBluephotograph wrote:
I cannot install lightroom 5 until the upgrades from 4 are on the pc,
You don't need to have Lightroom 3 and 4 installed on your computer to install Lightroom 5. Just install Lightroom 5 and input your serial number for 3 in the previous version box and your serial number for 5 in the upgrade box. -
Most of the time I get The Connection Was Reset. Can someone tell me why this happens?
When I click on Firefox or when browsing or going from one site to the other I get "The connection was reset" then have to click on Try Again.
Can someone tell me why this is happening?
Thank you.
THE CONNECTION WAS RESET again this morning. I even get this message when I click on the Firefox Icon to get on the net. When for example I download something then it returns me to their site I get The Connection Was Reset. When I uninstall a program and it sends to to their site in order to answer as to why I am uninstalling their program then I get The Connection Was Reset.
Every time this happens I have to click on Try Again and find this to be annoying.
This does not happen once or twice a week, it happen ALL THE TIME.
This morning I went to Safe Mode and followed the instructions on INTERRUPTED OR RESET CONNECTION which tells us what to do but this did not work either.
Would be great if someone was able to let me know what to do in order to prevent this message appearing all the time.Do not know how to delete this reply. I replied instead of editing my question. I have edited the above now.
-
can someone tell me why the Iphone 5s 64gb is in the US $399 which is equivalent of £250 yet to buy it in the UK costs £709!!!!!
You're looking at the SUBSIDIZED price of the iPhone in the US that carriers offer by having the purchaser enter into a 2 year contract.
-
Every time I open my imovie app on my computer it always closes. can someone tell me why it does that? i already checked for updates but there is none.
I would suggest trashing your iMovie Preference file. Complete instrucitons are here.
https://discussions.apple.com/docs/DOC-4061 -
Impossible to update the softwares from the top CC menu. First the menu does'nt show the software on my computers and after a while of seaching, the icon disapear from the menu and no uptade. Can someone tell me why. Thank you
This is an open forum with a mix of other users and Adobe staff, not Adobe support... you need Adobe support
Adobe contact information - http://helpx.adobe.com/contact.html may help
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us" -
after i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?
Nothing is working and I can't find the Roboform toolbar. Your lack of direct support is really irritating- a live chat at least would be helpful.
-
Can someone tell me why the Yahoo mail server (IMAP) keeps requesting my Yahoo email password and says it's incorrect? Yahoo is my Mac mail server. This has happened before, but this time I can't get it to 'Cancel'.
You will have to contact Yahoo Support.
-
Can someone tell m why my iPad 2 doesn't display the YouTube app? I'm so confused. It is a standard app n the original iPad.
Well you already know the answer, but it was not included in iOS 6. Google released an YouTube App for the iPad so you can download that in the App Store.
-
Can someone tell me why can't I delete a picture of a text message conversation? I touch and hold a picture in IOS7.0.3; I touch More, I click the picture(s) and I click the garbage bin. The picture gets deleted, but then it comes back in a second!
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
Can someone tell me why my iMac lighting element is flickering?
Can someone tell me why my iMac lighting element is flickering and going to sleep mode too quickly? The guys at Austin MacWorks (official Mac reps) said they could not duplicate the problem in the shop, but I have a feeling thery did not give it a thorough look. I don't know to whom I should turn on this.
What model iMac? Do "About the Mac" and report what it says for processor type. That's a good start to figuring out to which of the four families of iMac yours belongs.
Also, check the OS version in the same window. Only 2002 iMacs with backlit displays can run the ancient 10.1 OS shown in your profile.
If you are in Auston Tx, I'm pretty sure it has a real Apple Store. That;s an option if you are still under warranty. -
Can someone tell me why, since upgrading to Yosemite, I keep getting a message window saying "Another device on the network is using your computer's IP address?"
That may be what is a fairly common problem of 2 devices mistakenly assigned the same address. Try shutting off all of the devices connected to your router, reboot the router and then the devices connected to it.
-
Can someone tell me why Apple cannot produce a Scabble game that works on Mountain Lion. So frustrated that this is not happening with all the technology available.
The only companies that can make a Scrabble game are the companies that own the rights to the game; Hasbro owns the rights in the US & Canada, Mattel owns the rights outside of the US & Canada.
You need to be speaking to those two companies. -
can someone tell me why a standard microphone doesn't seem to work with a mac-mini? Is there another kind of microphone I need to use?
Most microphone output a low voltage signal that must be put through a preamp.
The computer needs to have a line voltage signal level instead.
Allan
Maybe you are looking for
-
My airplay button will not show up on any of my devices anymore.
My airplay button no longer will show up on any of my devices. I have the new Ipad, Iphone 4s, Ipod touch, and macbook pro. Every device is on the same wifi network and the network is secure and 100% strong. I was just using airplay yesterday and now
-
Air play mirroring doesn't work mac pro desktop 2010 mid 27" display
mac pro desktop 2010 mid '27" display' I have turn on the " show mirroring options in the menu bar " it does not show up I also have Imac workes just fine ,Iphone , Ipad , same workes just fine so it is in the mac pro is there a down load fix or do I
-
Best Practices in use of ABAP for SRM and/or CRM Configuration
I was wondering if there is a document that defines best practices for the use of ABAP with the installation and customization of SRM and/or CRM. Such as amount of ABAP coding typically required, and best practices around the use of ABAP for customiz
-
Import photos that don't exist...
When I import pictures into iPhoto from an external hard drive, there are mystery pictures that are showing up. These are pictures that used to exist on the HD but that I deleted from there. I deleted my entire iPhoto library and emptied the trash wi
-
Inbound idoc mess type:DESADV basic type: DELVRY03 Item text
Hi all, W're having a inbound process to create inbound deliveries via IDOC. mess type:DESADV basic type: DELVRY03 We want to create a item text on the delivery via the IDOC. Is this possible? I see that there's a segment E1TXTH9 - E1TXTP9 to put