It just gettin too much!!

i have been trying to solve this problem for the last 4 hours!!
i just can't get the program to get input from the console!!!
This is the simplified version!!
public class Main {
int username = 0;
public static void main(String[] args) {
System.out.println("Aloha!! Enter username: ");
username = Integer.parseInt(System.in.read());
these are the error that come up using the Sun ONE Studio 4
Username/Main.java [7:1] non-static variable username cannot be referenced from a static context
username = Integer.parseInt(System.in.read());
^
Username/Main.java [7:1] cannot resolve symbol
symbol : method parseInt (int)
location: class java.lang.Integer
username = Integer.parseInt(System.in.read());
^
HELP!!!

yup i understand.........but now it generates this error.....excuse me i am just a biginner!!
this is the code that generated the error
public class Main {
static int username = 0;
public static void main(String[] args) {
System.out.println("Aloha!! Enter username: ");
try{
username = System.in.read();
}catch (IOException e) {
System.out.println(e.getMessage());
and this is the error
userName/Main.java [8:1] cannot resolve symbol
symbol : class IOException
location: class Main
}catch (IOException e) {
^

Similar Messages

  • My messages app won't open, after I sent a large iMessage. I think it just has too much data on it. What can I do other then reset my iPhone?

    My messages app won't open, after I sent a large iMessage. I think it just has too much data on it. What can I do other then reset my iPhone?

    Hi everyone, I had this problem but none of the solutions above worked. What happened with me, and with others in other forums, is that a particular thread or message was causing the problem. I'd go to open the message and all I'd get was a white screen with the blue bar at the top. So, I went into contacts, pressed 'send message' to a contact whose message wasn't causing the problem, then I pressed back to messages. You then swipe to the left on the thread that's causing the problem, and delete it. Sadly this means you will lose all that person's messages, but you can try opening it from there and deleting it on the thread. Didn't work for me though. Hope that helps! It was the only thing that worked for me after about three days of total frustration and resetting!

  • HT4061 This whole **** iPad "get help" is just way too much trouble.  I am going to throw the **** thing away!

    I have an iPad.  I have used it off and on.  When I went to use it tonight, I kept getting an error message on my password which I have used for at least 7 months.  Then I have to go through all kinds of contortions to get it reset.  Then I have to read a 42 page iTunes document before my iPad will let me do a thing!  So, after 5 o 6 pages I tell it to send it to my e-mail account.  But it refuses to let me do anything until I have read the document.  So then I go try to get support using my desktop and then it wants my serial number.  After more than 40 minutes this is all too much!  I am not a happy camper!

    Your post wins the truth and most funny award!  Who on earth "actually" reads terms of use all the way through?  We scan to the bottom, and click agree.  I figure one of these days, someone's going to knock on my door and tell me I have move out of my fully paid for home.  When I ask why they think I should do this, they'll whip out some user agreement I clicked agree and there, buried on page XX will be the statement that after 12.7 years, they have the right to take my house. 

  • I think I've just messed too much with my install

    Hi
    Recently, I have upgraded my system using the [testing] repo.
    Then I wanted to downgrade, and as I read somewhere here on the board, the only way of doing so is to manually remove packages and reinstall them after removing [testing] from pacman.conf.
    So I did just this:
    pacman -Rd cairo cairomm camsource db dcron device-mapper dia digikam dmraid dosbox doxygen firefox gd ghostscript glib2 gnome-python-extras graphicsmagick graphviz gstreamer0.10-good gstreamer0.10-good-plugins gthumb gtk2 gzip imagemagick imlib2 initscripts inkscape jasper kdebase-runtime kdebase-workspace kdegraphics-gwenview kdegraphics-kamera kdegraphics-kcolorchooser kdegraphics-kgamma kdegraphics-kolourpaint kdegraphics-kruler kdegraphics-ksnapshot kdegraphics-libs kdegraphics-okular kdelibs kdelibs3 kfax kile kipi-plugins klibc klibc-extras klibc-module-init-tools klibc-udev lcms libcap libcups libdjvu libdrm libgphoto2 libjpeg libmng libpng librsvg libtiff libvncserver libwebkit libwmf lvm2 mdadm mjpegtools mplayer nano netcfg obex-data-server octave opencv openoffice-base-devel pciutils pcmciautils php php-apache php-cgi php-curl php-gd php-mcrypt php-pear php-sqlite php-xsl pilot-link plotutils pm-utils poppler poppler-glib poppler-qt povray pstoedit pyqt python-qscintilla qscintilla qt qt3 redland rrdtool sdl_image slim sqlite3 texlive-bin thunar thunderbird tightvnc udev util-linux-ng vigra vlc wireless-regdb wxgtk xawtv xf86-video-intel xfce4-notifyd xine-lib xulrunner xz-utils zvbi
    Now pacman won't work, because of missing xz-utils, which is used by libarchive, which pacman itself depends on.
    What to do to save my system?

    drcouzelis wrote:
    I don't think it would be hard to use the Arch Linux install CD, do a live boot, "chroot", and then use pacman as usual.
    I think that makes sense. Doesn't it?
    Wouldn't it be the same problem then?
    I mean, if you chroot to the install, xz-utils will still be missing. Or does pacman use the stick's binaries also from within chroot?

  • IPhoto is taking TOO much cmd from my MacBook Pro !!

    Hello !
    iPhoto is taking too much cmd from my computer. When im looking at photos the cpu jumps up to 80-90% of my CPU en when i'm editing photos it can jump up to 160% !!!! Thats just way too much. It *** to be on this good computer and cannot look or work with photos in a software which is specially built for this computer ! How can I fix this ? This is just NOT acceptable !
    Please help me !
    MacBook Pro
    Mac OS X 10.5.8
    2.4 GHz Intel Core 2 Duo
    2 GB 667 MHz DDR2 SDRAM

    cmd?
    Have you tried the usual simple troubleshooting steps?
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    *What's the plist file?*
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    Regards
    TD

  • Creative Cloud is taking too much time to load and is not downloading the one month trial for Photoshop I just paid money for.

    Creative Cloud is taking too much time to load and is not downloading the one month trial for Photoshop I just paid money for.

    stop the download if it's stalled, and restart your download.

  • New iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    I have a new iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    If you just bought the iMac and the Sjuperdrive take the superdrive back and get a refund. The by any other brand external DVD drive that connects by USB and try that. Most come with a Y USB cable to allow you to connect to 2 USB ports to supply enogh power to the drive IF Needed.
    Or take both back and get a refund on both, you have 14 days to return it no questions asked, and buy another iMac and some other brand external DVD drive.

  • Bought i phone 6 64 GB just 3 days before performance is very bad.Couldn't even open app store it takes too much time for opening a web page.

    bought i phone 6 64 GB just 3 days before performance is very bad.Couldn't even open app store it takes too much time for opening a web page.

    You may need to reset your network settings, making sure the network you're accessing is stable: tap Settings > General > Reset > Reset Network Settings.
    If your iPhone still can't connect to App Store, tap Settings > iTunes & App Store > tap the Apple ID and sign out > later, sign in with your Apple ID.

  • Is Mountain Lion just too much for my MAC?

    I was running Snow Leopard and it was great everything ran smooth and everything. I needed to upgrade to iMovie 11 which I couldnt due unless I upgraded to Mountain Lion.
    Now my computer just runs sluggish. Everything lags now, from internet browsing to itunes to everything. Ever since I upgraded its been like a downgrade.
    My mac is a early 2008 model macbook pro. Is Mountain Lion just too much for my computer or is there anything I can do to fix this?

    RIPJDilla wrote:
    For someone who has never put together a computer or anything of that nature, how hard or risky is installing it.
    It's easy. Apple even provides instructions for you: http://support.apple.com/kb/HT1270
    Crucial has a little app you can install that will examine your system and suggest upgrade options:
    http://www.crucial.com/systemscanner/MacOS.aspx
    You don't have to buy from them, though they are a good vendor, as is OWC / MacSales.

  • Why does my laptop give me a warning saying that firefox is using too much memory and to restart firefox to be more efficient? I just bought this laptop so I know it has the power to run what I need it to.

    Why does my laptop give me a warning saying that firefox is using too much memory and to restart firefox to be more efficient? I just bought this laptop so I know it has the power to run what I need it to.

    You appear to have AVG installed:
    *See --> http://forums.avg.com/ww-en/avg-forums?sec=thread&act=show&id=173969#post_173969
    From reading on the internet, it appears that when there is a spike in memory usage, AVG "interprets" that as a memory leak, possibly caused by malware. AVG could be incorrect concerning that assumption. Maybe they are being a bit too conservative about memory usage; just my opinion.
    The decision is yours to turn off the "advisor" or leave it on.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Fire fox crashes and freezes if i use it too much (kind of a good thing). For example if i use stumble fire fox will start to slow down then freeze completely. Does anyone have a solution or should i just switch to chrome?

    Fire fox crashes and freezes if i use it too much (kind of a good thing). For example if i use stumble fire fox will start to slow down then freeze completely. I am using windows XP pro and a pretty decent computer. All software is up to date and i do no have a virus. I have even tried to disable my add-ons and plug-ins but it did not make a difference. Does anyone have a solution or should i just switch to chrome?

    Please provide a crash id -> https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report
    Do the issues still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode

  • I can't get an answer to this. I have a 120 gb iPod. Way too much to put my music on my iPhone. Is there a way to just put some of my music on my iPhone?

    I can't get an answer to this. I have a 120 gb iPod. Way too much to put my music on my iPhone. Is there a way to just put some of my music on my iPhone?

    Playlists on the iPhone are the same as on the iPod. Just connect the iPhone and go to the iPhone Music tab in iTunes. You can check the playlists you want on the iPhone.
    One "trick" is to create a new playlist and just drag all of the music you want on the iPhone to this playlist, then sync only that playlist.
    Another option is to use the "Convert higher bit rate songs to 128kbps AAC" on the iphone Summary page in iTunes. This will compress the music and you will lose some quality, but unless you are using $500 headphones you won't notice.
    The manual is in Safari on your phone; its a predefined bookmark. You can also download a PDF:
    iPhone User Guide (For iOS 6.1 Software)

  • HT1657 I have rented a movie and the download didn't start. Now everytime I try to play it I can't and I can't download it. I've been charged but can't watch my purchase. How do I just return it and rent it somewhere else? Too much of a hassle.

    Now everytime I try to play it I can't and I can't download it. I've been charged but can't watch my purchase. How do I just return it and rent it somewhere else? Too much of a hassle.

    Try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • The older version would let me drag the icon bookmark to the tool bar but now I have to make a whole new toolbar just to add the one bookmark i loose too much page room this way. Is there a way to do it like the old version?

    the older version would let me drag the icon bookmark to the tool bar but now I have to make a whole new toolbar just to add the one bookmark i loose too much page room this way. Is there a way to do it like the old version?

    Removing the favicons, changing the titles to 1-4 characters without spaces, and putting some or most into folders still readily accessible from the bookmarks toolbar
    would help a lot. Also changing the size of the bookmarks toolbar text and color with a Style to differentiate between folders and bookmark/bookmarklets would help, see
    * Stylish :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/stylish/
    * Bookmarks Toolbar Fx4 Blue/Folders, Red/Bookmarks - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/46947/bookmarks-toolbar-fx4-blue-folders-red-bookmarks?r=1303478882

  • I just got an iPad 2 16 gb and was wondering how I can upload pictures from a micro sd card but my iPad is saying cannot connect device using too much power. I have tried a 16 gb micro sd card and 4 gb micro sd card. Can anyone help please??

    I got an iPad 2 and I cannot get my pictures to upload from a micro sd card as the iPad is saying device not accepted using too much power. Can anyone help? My iPad 2 is a 16 gb and my micro sd card is 4 gb

    You can use a USB flash drive & the camera connection kit. First download the pics to your computer.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import.
     Cheers, Tom

Maybe you are looking for

  • How do I fix my hang up problem

    == Issue == I have another kind of problem with Firefox == Description == every since I updated my Flash player to adobe10.045 fox fire has been hanging up loading most web site and or page. It can take as long as 5 hour to get a page loaded complete

  • InDesign CS6 uninstall and re-install problems

    Okay.  I had a project to work on for a class I'm in and wanted to open Indesign CS6 on my computer but I kept getting crash reports and the program would not open.  So.... I desided to uninstall it and re-install it figuring it is still part of my o

  • Mountain Lion/ Safari/Netflix

    I updated to mountain lion and have not been able to watch netflix since. Everytime I try to stream, it tells me that I need silverlight. I download silverlight and it still does not work. I uninstall all silverlight and try again and it still does n

  • How do i customize my toolbar

    I know how to customize it, but it's just that when i open the window to drag the items to my toolbar nothing happens. it wont let me drag anything i can delete things just by clicking on it. so is it locker or something? do i have to reset safari?

  • I cannot open my memory card in pc suite(service m...

    Hi all Since this morning, i cannot open my memory card once inside pc suite! The phone is connecting ok (shows the model phone and my details)and it let me go into file manager. It then shows me ( phone memory) // richies stuff (memory card) Thing i