Why is this statement being repeated?

import java.util.Scanner;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("Blahdy blah: " + "blah.");
        sc.next();
}Output:
Blahdy blah: blah.Blahdy blah: blah.
I've found that removing the colon fixes this, but could someone please inform me as to why this happens?
Thank you.

Ah, nothing changes. I was getting this problem while I was using Scanner, so I expected that the use of it triggered something, but it does not!
The following code does the same when executed:
class Main {
    public static void main(String[] args) {
        // Apparently anything after the colon that is not a
        // space or blank character will cause this statement to repeat in NB.
        System.out.print("Blahdy blah: a");
}This does not happen when using println, just thought I might add that.

Similar Messages

  • How/why is my iPhone being repeatedly hacked

    I don't usually post on this sort of thing but this has been annoying me for quite some time now.
    I have read countless posts about 'how the iphone cannot be hacked unless the hacker physically possess the phone' but I tend to believe that isnt true after my phone appleid account was hacked ....7 or 8 times? I've actually lost count now.
    Over the last 5 months I repeatedly got those 'How to reset your apple ID password' emails which hinted someone was punching in my username and clicking the 'I forgot password' button. But a few times now amongst the many, many "I forgot" emails there is one in the list of unread emails saying 'Your Apple ID password has been reset.'
    Its pretty odd cause whoever is hacking me has nothing I can think of to gain - no credit card details and once they hack into my account, I answer security quetions and gain the account back into my own hands (albeit with a new password. I'm starting to run out of password ideas now as you can't use the same one or even similar again).
    All the hackings are happening (from the time I get the emails) I'm guessing somewhere in the northern hemisphere due to the fact it always happens about 2-3am local time for me.
    Is there anything more I can do to stop this ****wit hacking into my account? I seriously thought this idiot would have given up by now.
    And for anyone thinking it -  no he's not guessing my passwords. I've had so many different ones now with uppercase and numbers there's no way anyone could guess them all (or any for that matter!!).
    Any help would be appreciated!!

    If you are receiving e-mail messages that indicate that someone is trying to reset your Apple ID password, they may be phishing scams. Do not click any links in those e-mail messages, and if you make the mistake of doing so, do not provide your current Apple ID password on the page you are directed to.
    Unfortunately, in this case, there's nothing to be done except treat those messages the same way you would any other spam.
    The other possibility is that someone is actually trying to reset your Apple ID password. This may be due to a malicious attack, but more likely, it's just someone who thinks your Apple ID is actually theirs (due to a typo, faulty memory or something similar) and is trying to "regain" access. In any case, this is merely an annoyance, but you can put an end to it by enabling two-factor authentication on your Apple ID. This will require an additional piece of information that only you will possess in order to even start the password reset process.
    If you are actually seeing your password getting changed, and are having to reset it yourself to regain access, you are being hacked. This could be because your password is not strong enough to withstand a brute-force attack by a botnet. It could also be because the attacker already has access to your e-mail address, and is able to intercept the reset e-mail and complete the reset process. Because of that danger, you should change the password for the e-mail account associated with your Apple ID. You should also change the password for your Apple ID, making sure that it is a strong password, and enable two-factor authentication as mentioned above.

  • What is the story on mac vulnerability? Is it serious or not serious?  If not serious, why is this not being explained?  If serious, why are Mac users not being informed of the risk?

    what is the story on mac vulnerability? Is it serious or not serious?
    If serious, why are we not kept informed
    If not serious, why is some much anxiety being created?

    IMO, it is being greatly over-blown in the media and online.
    Man in the middle attacks require the hacker to be connected to the same intranet network that your device is.  Even if they are, unless you go to a secure site and use personal data (like passcodes) they get nothing from stealing your data stream.
    If you are at your home, on your own secured intranet, then you really have virtually nothing to fear (as long as your own home network is secured and not wide open to anybody within range).  If you routinely use a VPN connection when on public wifi, again, you are fine.  Or if you use FireFox, Chrome or another browser that implements its own SSL security, then you are fine.
    The fact is, that even for those in a particular situation that is vulnerable to such an attack, most are not actually under any such attack - it is not nearly as rampant as the recent hype would have it seem to be.

  • Configure Keyboard Layout - why is this screen being displayed?

    Hello,
    I have a problem. I want the Solaris 10 installation to be hands-off. I modified the sysidcfg file, everything wors fine, but unfortunately after the execution of the finish script (at the end of the installation) this screen is being displayed:
    q Configure Keyboard Layout qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
      Please specify the keyboard layout from the list below.
      > To make a selection, use the arrow keys to highlight the option and
        press Return to mark it [X].
          Keyboard Layout
          qqqqqqqqqqqqqqqqqqqqqqqqq
      ^   [ ] Slovenian
      x   [ ] Slovakian
      x   [ ] Spanish
      x   [ ] Swedish
      x   [ ] Swiss-French
      x   [ ] Swiss-German
      x   [ ] Taiwanese
      x   [ ] TurkishQ
      x   [ ] TurkishF
      x   [ ] UK-English
      -   [X] US-English
    qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
        F2_Continue    F6_HelpWhat is the reason of that?
    Thanks in advance.
    Regards,
    Przemek

    Anybody? My last day to return is tomorrow, but I'd be willing to try once more if I just happened to get two faulty phones.

  • Why is this exception being thrown

    Everytime this piece of code is run we get this Exception. Is there a way to avoid that at all. Though it is being handled properly but it would still be better if this could be avoided. Any ideas
    JavaDeveloper mspete = JavaDeveloper().getInstance();
    try{
    mspete.setJob(new Job(goodWages));
    mspete.setHouse(new House(4BDRM));
    mspete.getHouse.add(Wife);
    mspete.getHouse.add(Kids);
    mspete.setMood(Feelin.GOOD);
    catch(LayedOffDueToOffShoreDevelopmentException){
    RepoMan reaper = new RepoMan();
    reaper.take(mspete.getHouse());
    mspete.setHouse(new House(BOX));
    mspete.lose(Wife,Kids);
    mspete.get(Shotgun);
    mspete.shoot(mspete);

    Try mspete.clone() cus that almost equals me, my error handling weren't quite as extreme though. Mine was more like
    if(mspete.clone() instanceof Rob) {
      Rob rob = (Rob)mspete.clone();
      pub.go();
      rob.drink(pub.buyLotsOfBeer());
      rob.fallOverDrunk();
    }Rob.

  • Why is one message being repeatedly sent, blocking all other messages?

    This is a Thunderbird concern: Three days ago I had a message come and repeat itself numerous times (around 30 times). The same thing occurred yesterday and now has blocked other messages from coming in. I have shut down and restarted the computer twice to no avail. It will tell me, as did this morning, I have 14 messages, but only one came through and it was the same one that has been stuck for two days now.
    When I click on Get Mail, nothing happens.
    If you can help me correct this, it will be greatly appreciated! Thank you.

    Try to login to your account via webmail and delete the problematic message.

  • Why is this statement failing

    Hello:
    I tried the following script:
    CREATE TABLESPACE "INNOBOX_DATA" LOGGING
    DATAFILE 'F:\Oracle\Database\venkats\venkats\INNOBOX_DATA01.dbf'
    SIZE 100M
    CREATE TABLESPACE "INNOBOX_INDEX"
    DATAFILE 'F:\Oracle\Database\venkats\venkats\INNOBOX_INDEX.dbf'
    SIZE 50M NOLOGGING
    CREATE TEMPORARY TABLESPACE "INNOBOX_TEMP"
    TEMPFILE 'F:\Oracle\Database\venkats\venkats\INNOBOX_TEMP.dbf'
    SIZE 20M
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M
    CREATE USER INNOBOX_SA IDENTIFIED BY r1m1ni
    DEFAULT TABLESPACE INNOBOX_DATA
    TEMPORARY TABLESPACE INNOBOX_TEMP
    QUOTA UNLIMITED ON INNOBOX_DATA
    QUOTA UNLIMITED ON INNOBOX_INDEX
    QUOTA UNLIMITED ON INNOBOX_TEMP
    Everything is fine except for the last line, "QUOTA UNLIMITED ON INNOBOX_TEMP".
    If I delete this line, the script executes successfully. But otherwise, I get a "Cannot grant quota on the tablespace". I tried giving unlimited quoto on INNOBOX_TEMP using EM but I get the same error.
    What am I doing wrong?
    Thanks.
    venki

    You don't give users quota on a temporary tablespace. Oracle will give users whatever TEMP space they need to complete their sorts and store their temporary data.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Why is This message being relayed?

    I have my relay settings to only accept 127.0.0.0/8 and 192.168.88.0/24, so how did this message get through?
    Dec  5 19:55:34 mycompany postfix/smtp[24709]: 6852E91833E: to=<[email protected]>, relay=cluster4.us.messagelabs.com[216.82.250.19]:25, delay=256, delays=0.01/0.01/69/186, dsn=2.0.0, status=sent (250 ok 1323136534 qp 15594 server-5.tower-87.messagelabs.com!1323136279!47765957!1)
    This weekend I found that someone was sending thousands of spam messages through my server even though I use authentication.

    You need to look further back in your logs for the answer.
    Dec  5 19:55:34 mycompany postfix/smtp[24709]: 6852E91833E: to=<[email protected]>, relay=cluster4.us.messagelabs.com[216.82.250.19]:25, delay=256, delays=0.01/0.01/69/186, dsn=2.0.0, status=sent (250 ok 1323136534 qp 15594 server-5.tower-87.messagelabs.com!1323136279!47765957!1)
    The 'Accept SNMP relays...' option only relates to blind/untrusted relaying - if a connection comes from these IP addresses then accept the message, but that's not the only method that postfix will allow. If a user authenticates against the server (using one of the authentication methods you've selected) then they can also relay mail, regardless of their IP address.
    Therefore, my first guess would be that someone's guessed a valid username/password on your server and is therefore using an authenticated connection. This can happen easily if users don't have strong passwords.
    You'll need to track back through your logs to find where this message was injected into the mail queue.  Start off by searching for that message ID (6852E91833E) in the logs, or look back in time (this message has been in the queue for 256 seconds. Eventually that will tell you where it came from, and what user authenticated the connection. Then shut down that account until you can change that user's password and educate them on how to choose effective passwords.

  • When I receive an email that contains a logo in a png format the logo is repeated twice.  Why is this happening in my email when it is not happening in other recipient's mail.

    When I receive an email that contains a logo in a .png format the logo is repeated twice.
    Why is this happening in my MAC maverick system when it does not happening in other
    MAC recipients' email?
    Nan

    WMP is a windows proprietary format.
    It is not supported on iOS devices.
    QuickTime player is built into ios and used for all video playback-nothing is being converted.
    You can try downloading an alternate player that can playback wmp or use a computer.

  • When i go to buy an app on my ipod touch, i click the buy button then the install button and it just keeps repeating itself then dissappears, why is this?

    when i go to buy an app on my ipod touch, i click the buy button then the install button and it just keeps repeating itself then dissappears, why is this?     help me please, i cant download no apps.

    If  you have iOS 3.1.3 then it is an Apple problem.

  • HT201412 even after all night of charging my ipod touch is running out of battery whithin 5 minutes of it being on, why is this?

    even after all night of charging my ipod touch is running out of battery whithin 5 minutes of it being on, why is this?

    Try the following to rule out a software problem.:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still that short of life ake an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Why would it state under the "more about this mac" that i already have10.8.3 and then in the app store say i need to "resume" do you know what i mean? is it possible i already did download mountain lion entirely once? I am confused and don't want it twice

    why would it state under the "more about this mac" that i already have10.8.3 and then in the app store say i need to "resume" do you know what i mean? is it possible i already did download mountain lion entirely once? I am confused and don't want it twice

    This is cause by the way the App Store checks to see if an application is installed on your system.
    Basically when an app is installed it is in the Applications folder and this is where the MAS looks for them. So it looks at your purchase history for the apps you bought and looks in the Applications folder to see if they are installed. If an app is in your purchase history but not in the Applications folder the MAS says you need to install it.
    For normal apps this works fine but the OS doesn;t install into the Applications folder. So the MAS sees you have Mountain Lion in your purchase history but it's not in the Applications folder and so it says you need to download it.
    Hopefully one of these days Apple wil fix this.
    regards

  • Why is apple id being disabled .? and i rs this  . but not replay my email ?

    why is apple id being disabled .? and i rs this  . but not replay my email ?

    Don't post your IDs or other personal information here. These are user-to-user support forums, not a method for communicating with Apple. I've asked the Communities Hosts to remove your personal information.
    As to your problem, if you have forgotten the password to your Apple ID, try this web page:
    https://iforgot.apple.com
    If that does not help, you will need to call Apple Support, ask to speak with Account Security, and work with them to reset your password.
    Regards.

  • I keep getting a message from Norton Security that there is an intrusion that is being blocked. The intrusion is always accompanied by this message 'the attack was resulted from /device/harddiskvolume2/programfiles/mozillafoxfire/foxfire.exe. Why is this

    I keep getting messages from Norton security that there has been an attack that has been blocked. It is accompanied by the message that 'the attack was resulted from device/harddiskvolume2/programfiles/mozillafoxfire/foxfire.exe Why is this happening so frequently? Also I was getting a message every time I closed my browser window that Firefox had crashed (even though it had not), and it wanted to send a message to Mozilla.
    == This happened ==
    Every time Firefox opened
    == Two days ago

    I did some searching and found http://community.norton.com/t5/Norton-Internet-Security-Norton/repeated-quot-intrusion-attempt-quot-alerts-from-Norton-AV-2010/m-p/232823
    Maybe that will help? Did you come across a website that said was scanning your computer for viruses? Those websites are really attack sites.

  • My mac has started sending yahoo emails out as if they were being sent from an old gmail account I haven't used in years. Why has this just started happening?

    My mac has started sending yahoo emails out as if they were being sent from an old gmail account I haven't used in years. Why has this just started happening? 

    It is important to understand that Mail uses TWO servers, a Receiving Server and a Sending Server.
    When you create a new mail message, or reply to a message, the Sender server is shown in the message composition window like this:
    That drop-down window allows you to select which of the Sending Servers you previously set up should be used.
    In general, once you choose a Sending server, its choice will "stick" for all future replies to messages from that Receiving mailbox.

Maybe you are looking for