Minor problem

I havn't got my previous work to look at so i am completely stuck on how to do this general formatting to get rid of that damn static context error.
Here is the basic code layout
public static void main(String [ ] args){
System.out.println("Main menu");
   switch(choice){
   case 1:
         counter++;
         secondMenu();
public void secondMenu(){
System.out.println("Second menu");
}I know its due to counter++ but how can i do some calculations still?

You can only (directly) call static methods inside other static methods:
class X {
  static void a() {
    b(); 
  static void b() {
} However, if b() is NOT static, you will have to make an instance of X and then call b() on that instance:
class X {
  static void a() {
    X instance = new X();
    instance.b(); 
  void b() {
I recommend you to read this tutorial from Sun Understanding Instance and Class Members :
http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html

Similar Messages

  • Minor problem with protective c

    Ok so I recently purchased the Creative Zen Vision M Mp3 player. It's great so far and I have no real complaints about it at all, well at least not yet, but I think i'll love this player once I get used to it. By the way the touch pad isn't as bad as people seem to make it out to be, at least it is not for me.
    Anyways I also bought the protecti've leather case that was designed for this MP3 player, here is my problem though. When I try and press the buttons like play/pause, the options button, back, etc with the leather case on they don't seem to do anything. I take the case off and it works fine. It's a minor problem, but I can see it becoming annoying after so many times of taking the case off to select a different song or change options or to even pause the song.
    Has anyone had this minor problem and if so were they able to find a solution? Any help would be great.

    That menu item contains no anchors (links) so it's not picking up link styles from your #menu CSS.  Try adding a null anchor like the one above it.
    <li><a href="#">2014 Fall Season &9658;</a><ul>
    EDIT:  The code for a Right Triangle should be this &#9658;  (with the # sign)
    Nancy O.

  • Minor Problem with CSS?

    I'm having a minor problem with my CSS for the menu on this page.  The child "2014 Fall Season" under "Season Information" is not adopting the font attributes that all of the other children sub menus are using.  I've racked my brain and can't figure out why.  Any thoughts?
    http://www.simiyouthsoccer.org/all_stars.html

    That menu item contains no anchors (links) so it's not picking up link styles from your #menu CSS.  Try adding a null anchor like the one above it.
    <li><a href="#">2014 Fall Season &9658;</a><ul>
    EDIT:  The code for a Right Triangle should be this &#9658;  (with the # sign)
    Nancy O.

  • Font Book "finds 80 minor problems proceed with caution"

    Just happened to discover this. When I select All Fonts and then validate it comes back and says that there are 80 minor problems proceed with caution. What does this mean? I don't think I have been having any problems. It appears that when you look at one of the fonts that have a problem there actually two of them listed. It tried to resolve duplicates and it makes no difference.

    I wouldn't trust them if Font Book doesn't like them, bad fonts can really mess up OSX itself.
    Mac OS X 10.4: Fonts list...
    http://support.apple.com/kb/ht1538

  • Lost Data Minor problem data 3 ?

    I Have acidently erased and installed osx 10.4 on myt audio hardisk !
    I have tried nerly every type of data rescuing program on osx and p.c but the files have come back as .mpg and when I change the extentions and try to open then up in logic 7.1.1 it just doest make it ! Does any one have any experience with this type of situation as such ? And if so what can be or not be done . I have about 3 months of very hard work into the disk And going crazy to fix this up but not getting anywhere:(
    And I always get this mesage minor problem in data 3?
    What is this ?

    Hi Prakash,
    When you load data from R/3 through any infopackage the Job name is automatically taken starting with "BI". This means this a BI job running in R/3 for the ease of the understanding the processes for ourselves.
    But when the Job which has been in scheduled status, which you have started, it has taken this as per the R/3 job as you have released the Job from R/3.
    This might be the reasons where your Job description or name is different.
    It's not the issue or problem with system. If you are getting a wrong data or not loading the data then you have to check the Job log for that particular job.
    Or the another chance of the wrong job name, may be, you have released another job which is not related to BI.
    Please check whether you have released the Right Job pertaining to BI.
    Regards,
    Ravi Kanth

  • Airtunes user with a minor problem: Ethernet

    Hi everyone I am a mostly satisfied Airtunes user with a minor problem I hope someone can help me with.
    The Airtunes/Airport Express is working perfectly with my stereo and my usb printer. But even after reading and tinkering I cannot make it connect via ethernet to my G3 iMac.
    My setup is thus: A G5 Dual 2Ghz has the Airport Extreme card inside it and the aerial attached. That's in the studio. In the lounge is the stereo, Airport Express and the printer and iMac.
    I have the Airport Admin Utility 4.2 and there are no updates available according to Software Update. I don't have any security activated and have turned internet sharing off for the base station. I have turned WDS on. The amber light has been flashing since I first plugged the Express in yesterday. I'm using OSX.3.9 and the Admin Utility still says I am on a WAN Network, even though I am trying to setup a LAN thing so I can access the printer and G5 from the imac through the ethernet cable.
    Reading around I have discovered advice that says things like: 'yes, you can connect via ethernet to an existing network using WDS... 'and then stops there. It doesn't say how, or if it says 'the Express base station needs a static ip for the ethernet to see it', it never says how to assign the ip, what it should be, just assumes I must know what that means, rather than going through the necessary steps.
    So could someone please help with this? To me this seems the absolute most basic setup anyone would use and should be in the manual, or at least on the Airport Support site. Why can't the imac (also using OSX.3.9) scan for available networks and see what is hanging off the other end of the ethernet cable?

    I could be mistaken, but I believe it is not possible to do what you are trying to do. I don't think you can connect the Airport Express via WDS to an airport card installed in a Mac.
    You were correct when you enabled WDS on the Airport Express in an effort to share the internet connection, but I think you are only half-way there. I think you need to add an Airport Extreme to your network to act as the WDS master for the Airport Express.
    In this case, you would put the Airport Extreme next to the G5. You would plug the internet connection (from DSL or cable or whatever) into the Airport Extreme. You would then set it up as a WDS master and add the Airport Express to the new wireless network using the Airport Utility that comes with the Airport Extreme.
    Lastly, you connect the G5 wirelessly to the new network and plug the iMac into the ethernet port on the Airport Express. The iMac will not know it is on a wireless network. It will just get an address through its ethernet connection and start working.

  • Minor problem - I have 4 folders in the dock, but when I press on the icons for two of them, there is no choice of "display as folder" or "options". Can somebody tell me why not? Thanks!

    I have four folders in the dock. Two are fine. The other two of them will not allow me to press on the stack's icons to view the commands "Display as Folder" or "Options". Can somebody help me out with this minor problem?
    Thanks!

    Are you right - clicking (control-clicking) them? The following should appear if you do that, and allow you to change the folder's appearance in the Dock:

  • IMovie 08 minor problem, hovering on "Done" while capturing from a camera..

    In iMovie 7.0.1, when I am capturing from a camcorder, when I hover over "Stop", it shows "Click here to begin recording" instead of "Click here to stop...". The same is with when I am capturing with the iSight camera, it shows "Click to begin recording". This is a minor problem, but might confuse some computer illiterate folk and should be fixed in the next update.

    Thanks, I'll pass that along.
    If she's upgraded her OS or QT beyond this point, which she's probably done -- in all innocence -- then to get it to work, she'd have to re-install earlier versions of both OS X and QT? Or buy a new, considerably more expensive version of FCP?
    Wow! That's a bummer.
    Hal

  • Minor Problem - Messed up Play Counts

    Hi guys,
    Only a minor problem here, but i want to know why my Play Count keeps taking massive jumps forward? (P.S - This only seems to happen when I restart iTunes...)
    For example, I've "listened" to a song about 1,600 times in a week (after I downloaded it), which is inhumane since I use the computer (and my iPod) for about 2 hours a day max.
    I really would like a reliable and accurate play count so all the songs on the Top25 are my proper favourites :P
    Cheers guys!

    Since 9.0.1 my play count doesn't even go to the right song! I swear Apple must have done cost-cutting in their beta-testing (None is done!)

  • I love my new iMac! One minor problem, though...

    My 20" just arrived today. So far nothing but a great experience, save one minor quirk.
    Note: I'm updated to the latest build of OS X (10.4.5, I believe -- remember, I'm new to the Mac world :D)
    Either way, the problem is this: after my computer has gone to sleep, once I wake it up, the volume keys on the keyboard don't work. After activating Front Row, however, the keys started working.
    Odd, huh? Does this sound like a software glitch or a hardware bug? I could go get a new keyboard, but it's really only a minor inconvenience, and if it could be fixed by an update, I'd rather do that.
    PS-- Anyone have a iTunes album art utility that would automatically get the art and load it for my entire music library? I don't have any art, and it would take way too long to do this all by hand...
    Many thanks if you're able to help in either of these situations

    Note: I'm updated to the latest build of OS X
    (10.4.5, I believe -- remember, I'm new to the Mac
    world :D)
    You're correct; that's the lasted version.
    Either way, the problem is this: after my computer
    has gone to sleep, once I wake it up, the volume keys
    on the keyboard don't work. After activating Front
    Row, however, the keys started working.
    Since they start working again after you've run Front Row it's almost certainly a software glitch. It probably worth calling Apple to let them know you're having the problem. Hopefully 10.4.6 or another update will fix the problem.
    PS-- Anyone have a iTunes album art utility that
    would automatically get the art and load it for my
    entire music library? I don't have any art, and it
    would take way too long to do this all by hand...
    I've only tried using Album Cover Finder, http://www.amphonicdesigns.com/albumcoverfinder/
    It's not free but there is a "light" version you could try. I'm sure there are other utilities out there but I've never really looked.

  • L920 Cyan Update: minor problems after update

    Hello everyone! I thought I should try to find help here since the FAQs won't do in my situation. I updated my Lumia 920 (Italian CV) to Lumia Cyan and Windows Phone 8.1 a few days ago (the morning it became available) and I noticed a few nuisances, especially regarding to the system apps that came with the firmware update.
    So, let's begin: after the WP8.1+Cyan update I had to restart my phone several times to be able to project my screen, to update the glance screen and Networking+ apps etc., which is not a problem for me. The problem is that some of them are not functioning as they should be: for example, a minor issue is that the glance screen keeps showing the "Low battery+in battery saver mode" icon when my phone is low on battery but is not in battery saver mode (I checked it, it was disabled in the Battery Saver app). Another, more annoying issue is that the Display settings app (that lets me configure my color profile etc.) does not have options I expect it to have and it does not behave as it should: for example, as far as I know, I should have a brightness profile menu - which I do not have. I did not really need this function but it is missing so in this case I think it is an issue. What the real problem is, that when the ~"Lower screen brightness when in battery saver mode" option is enabled, my phone's soft buttons' lights automatically turn off (even in low light) and my screen's brightness is lower when it is set to "Automatic". This would not be a problem when I'm in battery saver mode, but I am not! Another minor issue is that when I try to slide to the app list from the start screen, it lags a bit: I mean, it does not instantly follow my finger but instead waits a very short amount of time and then slides to the left.
    So, what I found out is that somehow these Nokia system apps could think that I am continuously in battery saver mode and it does not matter if I turn it off or change it to "when battery is low" or anything. Also found out that now my battery saver app says "Last charge: less than an hour ago" - I charged it yesterday and have not plugged the USB cable into it since then. I also do not see the USB settings in my Settings view, but I can reach it by searching "USB" - it's like if it was in developer preview o.O
    I do not have issues with touch or anything else (yet?) but I would like to ask you if there is a solution which is not hard resetting my phone? I already did a soft reset, manual reboot, "let the phone battery go to zero and then fully charge it up" but none of them helped. I tried to change the brightness settings, updated all the apps and checked for system updates etc.
    Some probably useful information:
    Phone: Lumia 920 (Yellow)
    Carrier: Italy - CV
    Update process: that's a bit tricky: I received Lumia Black with GDR3 and then I thought I could try WP8.1, ticked the preview app's box and received that "post-GDR3 update" which was a really small package then I changed my mind and disabled the developer preview function, so I did not receive a notification of the WP8.1 update. I received the "pre-WP8.1 update" then the WP8.1+Lumia Cyan update, everything went smoothly except that my phone rebooted when I started configuring WP8.1 (I thought it should have rebooted earlier..). Another "probably-not-an-issue" is that when I enter my SIM PIN, the phone says "accepted", the label switches back to "Enter SIM PIN" and then after ~0.5 seconds it goes away and unlocks. Might this be caused by WP8.1's Dual SIM support? 
    So, in short I only have these little issues, that the phone's Nokia system apps somehow always detect that I'm in battery saver mode. Short addition: Iupdated the "Display" app while I was still on WP8 GDR3+Lumia Black.
    Again, the question is whether there are any solutions except hard resetting, because that is the last thing I want to do with my phone and only if there really is nothing else :-/
    Thank you for your help in advance and sorry for the long message, I just tried to include everything that might be of help :-)

    My Lumia 920 is updating its firmware right now. Question: is iot the announced Denim update and does it correct some of the issues we discussed here?
    The Denim update's features are:
    Windows Phone 8.1 Update 1:
    Cortana – The most personal digital assistant on the market will now be available in the UK and China as a Beta. India, Canada and Australia will have access to Cortana as a public Alpha. For US residents, Cortana now includes an improved natural language, car kit integration via Bluetooth for contacts, snooze reminders and calendar improvements.
    Live folders – If you prefer to keep your apps or games organised, you can now put them into folders. Simply press, hold and drag an app over another to create a new folder on the Start screen. Each folder can be renamed by tapping on the text field above the open folder.
    Apps Corner – Create a customised Start screen, where only specific apps or games are accessible. This could be particularly useful in the workplace if you’re issuing Windows Phones to employees.
    SMS merge and forwarding – Select individual text messages to either delete them out of a messaging thread, or to copy and past them into a new message in order to forward them.
    Snooze Times – It’s now possible to customise the snooze time within the Alarm app.
    Consumer VPN – Maintain privacy and security when using data while connected to public Wi-Fi hotspots or even with your home Wi-Fi.
    Mobile WebSite improvements in IE – Connect and browse even faster with improved downloading speeds on mobile websites.
    Store Live Tile (US only) – The Store Live Tile displays featured apps and games that are the most popular in the Store, or most relevant for you.
    Lumia Camera – Replacing Nokia Camera, Lumia Camera is faster and more intuitive than before to make the best camera experience, even better.
     Speed – Pocket to capture speeds are super fast, and it only takes milliseconds going from shot to shot.
     Moment Capture – A long press of the camera button starts 4K-quality video recording at 24 FPS. With each frame at 8.3 megapixels, you can save individual frames as high quality still images.
     Rich Capture – Auto HDR and Dynamic Flash are now welcomed into the already-impressive feature set. Shoot first and adjust the camera settings later for that perfect photo.
     Improved image processing algorithms – Updated to give you clearer photos, even in low light.
    “Hey Cortana” Voice Activation – Gone are the days of pressing the microphone button to wake-up Cortana. Simply say “Hey Cortana” while the phone is idle and Cortana will activate.This is possible thanks to the SensorCore technology.
    Glance Screen – Compatible Lumia devices can now show more at a glance with Bing Weather, or Bing Health & Fitness data, in addition to time and date, notifications and application data. 
    If it is indeed Denim (I'll find out within the hour), I suppose we'll have to open a new discussion thread.
    Giles

  • Minor Problem with MagSafe Power Adapter

    I got my MBP almost a year ago now (partially why I'm asking the question) and I've noticed that my power adapter doesn't always show the charge light. Sometimes it is not on at all, and sometimes it is less bright in color (both green and amber).
    If I remove it and put it back it usually corrects itself.
    It if fully functional; even if the light is completely out and plugged in it still shows as charging.
    So, is this normal? I never remember having this sort of problem with my PB G4.

    I would think the led light on my adapter cable was broken, but I discovered it works fine on a co-workers MBP. His adapter, which we know works, does NOT work (ie. the led does not come on) when attached to my computer. This indicate to me that the problem, whatever it is, can sometimes be with the computer and not the adapter.
    I would be curious if others with apparently dead leds have tried their chargers on other MBPs.
    Here's the long version of my story:
    My 5W MagSafe completely fried after only 9 months.
    The new adapter was fine for several days until this morning.
    My "low battery" warning popped up, so so I plugged it in to recharge and immediately noticed the little led on the charger cord did not come on.
    I found it hard to believe that I had another bad adapter, so before making the trip back to the store, I went into the studio where there are some other MBP users.
    I plugged my adapter into another laptop and the led came on. It appeared to function completely normally. I tried MagSafe adapters from two other MBPs, but the led did not come on on either of them while attached to my computer.
    This made me think there was some sort of problem with the connector on the computer itself. Just visually, it appears to be clean and corrosion free.
    The next obvious step, it seemed, would have been to try swapping batteries with the other laptops, but mine is a 17" and everyone else here has 15"... and so we have different battery sizes.
    One of the people here at the studio had a little utility called "Coconut Battery", that reports information about the battery health. When I ran it on my laptop, I got what I thought were rather surprising results.
    It showed the usual things like current charge (21%), battery capacity and so on. But under "Additional Info" it said "Charger connected: Yes" and "Battery is charging: No".
    I figured this narrowed it down to a problem with the battery. But as I was showing these results to my co-worker, the "Current Battery Charge" changed from 21 to 22%. Huh? We left it plugged in and it continued to show a steady climb in the charge, as if it is working normally. Except there is no led light, and the software still says it is not charging. Odd.
    I then noticed that the built-in battery level indicator on the status bar was also showing the same increases. The led lights on the back of the battery are indicating an increase as well.
    Just out of curiosity, I ran a second battery health analyzer program and again got these conflicting results. This one reported the same battery charge and capacity and so on as the previous one. It also recognized that the laptop was running off of AC power, that there was a battery, but it said "Not Chargeable."
    So now I am going to let it continue until I have a full charge and then see if the computer will run as usual from the battery.
    I don't think the store here is going to give me another adapter since this one appears to work just fine on the other computers.
    Any thoughts on why the led would work on other laptops but not mine?
    Why the battery health monitors report that the battery is being charged, but also that it is "not chargeable"?

  • Midpan is not mid pan after output and other minor problems...

    Ok, so I have this procjet I am working on.
    I have one sync with a man and one background audiotrack with a choir.
    In my headphones I hear a perfect midpan.
    The audiobar/VUmeters in FXPX shows exactly the same levels as eachother, since I have been using dual mono.
    When I export to a movie directly from FCPX I get about 75% left and 25% panning of audio in the exported file.
    After a couple of exports it magically starts working....
    However even If it is me that has done something wrong. I do not like the "what you hear is not what you get" feature...
    Anyone had this problem?
    Ohh and another thing that is realy annoying is that when I try to resize a window in the UI by dragging the middle bar I only grabs the window 1/3 of the times. I have to clich 2 to 3 times and reapeat, and then it works. Same goes with renaming clips that just refuses from time to time.
    Is this normal?

    OK. I found it. The project was set to surround by default. Setting it to stereo took care of pan problem.

  • I'm having a minor problem with "screen drift" - the page moves slightly up and down when moving my mouse around the screen, and continues to do so after stoppi

    I've installed the latest version of Shockwave, updated the driver from Logitech for my mouse (Logitech M525), tried both full screen and regular modes, restarted Firefox repeatedly. This drift is very annoying - I spend the majority of my time on FB - seems like the amount of drift varies from not at all to "damn it, I can't even place my mouse on an object without the screen moving".
    I'm on Windows 7 with an Acer V5-671 laptop - help please!

    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Font Minor Problem

    I was in Font Book, verified all font and have 35 minor issues, yellow question mark. How do I fix them.
    It appears all my fonts are in
    \Library\Fonts
    \System\Library\Fonts
    I have no fonts in \User\Name\Fonts but have collections in FontCollection
    1. How to I fix the yellow question marks.
    2. Hopefully this will fix a word 2008 issue opening up some documents.
    Thanks.

    Thanks, I will try to remove the microsoft fonts at
    /Library/Fonts/Microsoft
    From what I read if you doing it in font book will/may remove the wrong one. Since I already "resolved duplicates" from fontbook menu. How do I undo, probably have to uncheck or use from the menu bar. Thinking about it more if I just delete the font from MS, then validate fonts that should get me where I need to be, no bad fonts.
    Thanks

  • Missing files using the same library on two different macs and other minor problems

    Hi everybody,
    I'm working on a long documentary and I'm new to FCPX (coming from Avid NC and Edius)...I have and external HD where I stored all the media I'm working with (about 1/2T - 1000 clips)...The library (about 100gb) is stored on the internal drive of my iMac and into the iCloud.
    Yesterday, I received my new MacBook and today I tried to work on it. I followed this steps: I downloaded from iCloud the same library I was working with, I put it on the same folder (movies) it was stored on my iMac and I connected my external HD with all the media...Results? All the clips where gone and the red missing file warning was all over the place.
    FIRST QUESTION: How can I work on both computer overcoming this missing files problem? I know I should have put the library on the same external drive but It was a move aiming to
    SUB QUESTION 1:
    I went back to my iMac and everything worked fine except for a warning about one of my events (the exclamation point) as you can see from this pic:
    I tried to relink the file...but no files to be linked popped up in the relink file window....HOW CAN I KNOW what's wrong in that event in order to fix it?
    SUB QUESTION 2:
    I checked the Library info and - as you can see in the pic below - there are 43mb of media in my internal HD...is this maybe the problem preventing me from working on different macs? I tried to consolidate everything to the external HD but still the 43mb thing persist in being on the internal HD. How can I find where exactly it is located? How can I move it to the external HD given that the consolidate option isn't working?
    Thank you in advance for your help
    Nico

    1) Don't know why this is happening. It may have something to do with
    I downloaded from iCloud the same library I was working with
    I'm not clear what procedure you're using here. Using a cloud for storage might change some file tags. Generally users I think keep the library on the same drive as the media, keeping the library backups on the system. There is no real benefit in keeping the media in a separate location. Often users will keep the library in the same folder as the media. It makes backing up using tools like Carbon Copy Cloner very efficient.
    1a) This can be difficult to find as there sometimes is no obvious indicator. It might be a missing element in a compound clip, a missing or altered layer in a graphics file, a missing font, a missing effect. These will show up inside the item involved, but may not be apparent in the browser. A missing transition for instance will not be seen until you skim over the project or try to export it.
    2) The 43 MB is a small amount of optimized media. This never prevents relinking. The library is always looking for original media, or proxy media if you're in proxy playback. It never looks for optimized media. If it has it, it uses it, if it doesn't, it uses the original media. If you are using original/optimized playback, you must have the original files. The optimized files are not enough.

Maybe you are looking for

  • Can not update tiger and safari does not start

    Hi everybody, I have actually two but probably interrelated problems: First, safari does not start and second, I can not update tiger. It all started a few days ago on my MacBook (Intel). Somehow, Safari produced an error (I only guess that it was Sa

  • USB to SATA Converter

    Hi, I would like to upgrade the HDD of a MacBook Pro to a Solid Sate Hybrid Drive (MacBook Pro 5.1 late 2008). Before removing the original internal HDD I would like to install the Mac OS on the new drive, make sure it works ok. I have looked online

  • Safari Auto-fill URL Needs Work

    When I begin typing a previously visited website URL into the address field, that doesn't necessarily mean that I want to return to the same page of that site which I previously visited. That means, while it's nice to have the auto-fill (or auto-comp

  • Multiple Email attachments

    Whenever I try to attach multiple attach to an email, the first attach goes away or disappears

  • How to use Forms 5 and DevSuite 10g in the same machine

    Hello everybody, I have installed forms 5 and IDS 10g in one machine and both the versions of the forms were working simultaneously. Now I have un-installed both the versions of the forms and re-installed in the same machine. Installation was success