Why does my output give weird characters?

import java.util.Scanner;
public class SDTester{
     public static void main(String[] args){
          String message;
          Scanner scan = new Scanner(System.in);
          BinarySearchTree t = new LinkedBinarySearchTree();
          System.out.println("Enter command");
          message = scan.nextLine();
}Can someone explain why my output for this when typing quit is:
Enter command
quit�:

Yeah its what I typed in. The "a" is not the only mysterious part. Theres also that upside down L type thing and the colon. Sometimes theres extra letters. Im running on windows vista.
Its weird when I copy the output some of the "weird" characters dont show up.
EDIT: Its only with inputted text. I did a simple println statement and it was fine but the quit when typed in and the quit when printed out from the variable "message" give the weird text:
---------- Capture Output ----------
"C:\Program Files\Java\jdk1.6.0_02\bin\java.exe" SDTesterEnter command
quit�:
quit�:
Hello everybody
Terminated with exit code 0.Edited by: McCloud7 on Dec 16, 2007 7:29 PM
Edited by: McCloud7 on Dec 16, 2007 7:31 PM

Similar Messages

  • Why does my application give SerializationException although I have no serialized classes?

    I have created an application deployment tool for BizTalk, and it references and uses Microsoft.BizTalk.ExplorerOM apis to start, stop and manage a BizTalk application. Now when I run the tool, it gives following exception-
    Unhandled Exception: System.Runtime.Serialization.SerializationException: Type 'Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer' in Assembly 'Microsoft.BizTalk.ExplorerOM, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.
    None of my classes are defined to be serializable. And the tool is created in WPF. Any idea how I might resolve this?

    Hi,
    I think the user has got this resolved at stackoverflow already.
    Why does my application give SerializationException although I have no serialized classes?
    Resolution: He was creating the instance of BtsCatalogExplorer through reflection, using connection
    string instead solves the issue.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    This is a user to user forum.  Apple isn't here and won't answer you.  You need to contact Apple directly.  You can use the Contact button at the bottom of the screen.

  • Why does iPhoto not give me the option of ordering a medium size soft cover book?

    why does iPhoto not give me the option of ordering a medium size soft cover book?

    This is the iPod touch forum. There are two iPhoto forums, one for iOS iPhoto and the for OSX iPhoto. Try posting in the appropriate one

  • 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]

  • Why does my macbook give me the option to choose Macintosh HD or recovery HD at startup every time?

    Why does my macbook give me the option to choose Macintosh HD or recovery HD at startup every time?
    It never used to do that before until now.  How can I get it to just start up to the regular Macintosh HD again without clicking on the HD at startup?
    Im running a new macbook pro 13 inch with lion and everything is fully updated. 
    Thanks.

    Next time you boot, go here to make sure there is "something" selected:
    That's all I can think of...if nothing is selected in this box, strange things do happen

  • Why does my airport give wrong default gateway dhcp?

    I have a fancy AirPort Extreme Base Station running 7.7.3.
    It was recommended as a very good wireless access point, which it is, purely in terms of signal strength and connectivity.
    In terms of easy configuration, this thing is a nightmare. Someone once told me, "Get Apple products, they just WORK!" Not in this case. I am using the base station to provide access on my home network wirelessly and wired on the same layer 2. DHCP is assigning 192.168.1.250 as the default gateway, but the IP of the base station is 192.168.1.1, so none of my hosts on DHCP are able to get Internet. I cannot find or see a way to correct the DHCP gateway assignment.
    In addition, I have a single wired Windows host. It does not get the DHCP reservation I set up for it. I cannot for the life of me figure out why. MAC is right. ipconfig /release and /renew fails to assign the correct address every time tho.
    I have one Mac in the house. It too fails to obtain the right gateway IP. My question: why is the base station assigning 192.168.1.250 as a gateway when it's own internal IP is 192.168.1.1????
    I have owned many home access points. This is the first one I couldn't assign the internal IP to as a gateway address, and I can't assign a specific subnet mask to pair down the broadcast domain. Why are the options to configure my internal network so limited?

    LaPastenague wrote:
    Why are the options to configure my internal network so limited?
    So it will be easy to configure.
    Sadly this means there is no way to fix things when they go wrong.
    How did you manage to get 192.168.1.x .. as the default IP of the TC is 10.0.1.1 and it is well worth leaving it alone.
    Post a few screenshots and we can help you fix it up. Mostly.. probably.
    So the default is 10.0.1.1, but I didn't want an entire class A range wide open on my home network, so I chose the class C 192.168.X.X (why is Apple still doing classful networks?!?)
    Here's some helpful screenshots, starting with the opening screen.... note the router's IP:
    This is my AirPort's basic info, and the networks. There are two ethernet ports in back, one connected to the cable modem, the other to BADGER, my PC. BADGER will be the example in all my DHCP woes...:
    This is BADGER's manually assigned IP info. I would like to set up a reservation for it on the AirPort so I can just switch it to DHCP and be done.
    As you can see, my gateway is 192.168.1.1, which is the internal IP of the AirPort extreme. I use public DNS servers, so I add those manually on the PC. So, using this info, I create the reservation:
    Here you can see the DHCP scope I've assigned: .1.2-.1.50. I also set up a reservation for BADGER. No where on here is a way to specify the router's internal IP, which is 192.168.1.1 - it's the only gateway address that works.There's also no way to apply a more restrictive subnet mask to limit the number of hosts on my internal side, but that's another issue. Moving on...
    I apply the reservation. I click update. The AirPort extreme router updates itself. I switch BADGER to DHCP, and release/renew. Here's where it gets interesting:
    Here's what the router wants to assign me. The MAC address is the same as in the reservation, but the AirPort Extreme gives me 192.168.1.129? That's not even in the range I defined. Also, note the gateway address. It wants to assign 192.168.1.250 ... but that's wrong, as indicated by the lack of network connectivity in the system tray. If I configure my PC to use 192.168.1.1, then traffic routes off my home network just fine because that's the internal IP of the AirPort Extreme. So, without getting into this product's shortcomings as an actual configurable home router:
    - Why does it assign its gateway as 192.168.1.250 when it's really 192.168.1.1?
    - Why does it ignore my DHCP reservation and assign a completely out-of-scope IP?
    All of my devices are getting .250 as the gateway. Wireless and BADGER, even my lone Mac. Can anyone shed some light?

  • Why does SCXI 1325 give a NaN output at all channels?

    Till yesterday SCXI 1125 was working fine. But today the values that I am getting from all its channels is "NaN". No error is given.
    When I tried running the Test Panels thru NI-MAX, SCXI 1125 still gave a NaN output, while 6040E, 6251 and SCXI 1142 did not.
    Can someone tell me what is the problem and how it can be rectified?
    Setup :
    PXI chasis consisting of PXI 6040E and 6251
    SCXI 1000 chasis consisting SCXI 1142 and 1125
    Connection to SCXI 1000 chassis is thru PXI 6040E
    PXI 6040E connected to SCXI 1142 (accessory SCXI 1304)
    PXI 6251 connected to SCXI 1125 (accessory SCXI 1313)
    Data collection thru Parallel mode
    Thanks
    Jag

    Thanks Kodee for your reply.
    Well this is what I have done so far :
    a) Removed all the SCXI modules and reconnected them. Checked the wiring.
        But still get the same result "NaN" for SCXI 1125
    b) Reinstalled DaQmx drivers
         Still the same NaN result for SCXI 1125
    Also I have now realised that when I try to measure an analog signal thru the module SCXI 1142, I get some varying signal initially followed by a steady 5V signal.
    I am not sure whether this fault was present yesterday when I first came across the NaN problem with SCXI 1125.
    So right now, SCXI 1142 gives a steady 5V output while SCXI 1125 gives a NaN output.
    Could you suggest what I should do next?
    Also in your reply you had asked me to check whether any printer drivers are interuppting NI drivers. How can I check that out?
    Thanks
    Jag

  • Why does my iPhone give me a message chime at the same time everyday?

    For the last week, my iPhone 4 gives me a message chime everyday at the same time, 10:41 PM.  Yet, there are no notifications, messages, badge icons, or calendar dates.  I have no idea why it keeps doing this?  Has anybody else come across this issue?  If anybody can help out a guy who is fairly new to the iPhone it would be much appreciated. Thanks.

    Nope, I've gone through the Clock, Reminders App and through my Notifications and I can't seem to find anything that has a notification for that time.  I was wondering if it was something with my Cellular Network Carrier?

  • TS2776 why does my computer give me a cant find files notice when syncing my ipod? only about 1/2 of the songs transfer to computer out of the ipod. and the file must be on the ipod because i can play the song on it. i want to transfer all songs to my ipa

    why can't i transfer all songs on my ipod to my computer and then to my new ipad? i keep getting a message saying that about half of the files couldn't be found, and only about 1/2 of the songs went to the ipad when i first synced. the files must be on the ipod, because i can play all 448 from the ipod when disconnected from the computer. and all songs show up on my devices at itunes and can be played on the computer. but only about 1/2 are going to the ipad. i am no tech genius, obviously, but could someone please help me? thanks

    Apple does not support transferring files from the device to the computer if they are third party.  It is great that you were able to transfer the ones you did.  There is a way to do it but it sounds like you already did it because if not half of them would not come over.  The files can probably not be found because they are third party and the files are not compatible with the transfer process.

  • French accents in pdf output gives funny characters

    Hi All,
    One of our customer wants to view the french accents in the pdf ouptut but its showing some junk characters instead. For eg. Montréal is output as Montréal. He can see the correct output in the text but not in the pdf and the postscript format. Display is properly set,.
    Please advice me on the same,
    Refer SR 5840069.993
    Thanks and Regards,
    Ajay

    Hi,
    Try using oracle built-in CONVERT function.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

  • Satellite C850 - Why does Flash Player give me choppy videos?

    Hi, I have the Satellite C850-1MD, PSCBWE, Windows 8.1 64-bit.
    I have two problems.
    A. When I use Flash Player for streaming videos it gives me choppy playback. It *doesn't matter* if I use lower quality videos because it chops even though I use the lowest quality on sites like Youtube.
    B. If I use Silverlight it streams nicely up to 2 mbit/s but if i raise it to 3 mbit/s the playback gets choppy both with sound and graphics.
    Is it my broadband connection lacking capacity?
    No.
    I also have an old stationary AMD Dual Core with Nvidia 8400 GS and the same conncetion: it streams videos in Silverlight with 3 mbit/s flawlessly.
    I've tried with IE 11, Chrome and Firefox. I've cleared the cache. I've turned off and on hardware acceleration, but with the same results.
    When i search for the latest drivers for my Toshiba I'm getting confused because I get several options both for sound and graphics card. How can I find out which driver versions I should have installed?
    Do you have any other solutions?
    /henrik

    > A. When I use Flash Player for streaming videos it gives me choppy playback. It doesn't matter if I use lower quality videos because it chops even though I use the lowest quality on sites like Youtube.
    This is mostly related to slow data streaming.
    You said its not related to your broadband connection. Well, it must not be an issue with your broadband connection but Im thinking about server load.
    > When i search for the latest drivers for my Toshiba I'm getting confused because I get several options both for sound and graphics card. How can I find out which driver versions I should have installed?
    You can find your devices in device manger.
    The device manager provides you info about all devices which are built in the notebook.
    But honestly dude, Im sure its not a driver problem.
    By the way: the notebook specifications say that the notebook supports Intel HD Graphics 3000
    The Intel HD GPU is an internal graphic card which does not provide a lot graphic performance. Nevertheless it should be good enough for video streaming. However, you could check the Intel HD media control panel to improve Intel HD GPU performance

  • Why does iTunes not give an error message for wrong type of movie file

    I just spent an hour trying to get iTunes to import a movie type which it doesn't understand. Why on earth does it just fail silently instead of giving an error message about incompatible file type ? It was my own stupid fault, but I am so used to getting quirky errors in iTunes that I overlooked the obvious and started going up blind alleys. Is there some preference somewhere that can change this way of working.

    Have you tried downloading the apps on your computer and syncing?
    The message means what it says. Yu do not see the "artwork" for the app.

  • HT201285 Why does Apple not give more info on spotlight search? Set up your system with all selections disabled and text two or three messages. Then go ahead and check messages and go to spotlight search and type any letter that begins a word. Messages ar

    Why can't spotlight search be deleted or cleared? Why so secretive? The problem is that this is a huge business security risk.
    Fix it Apple!!!

    SteweyRoux wrote:
    Why can't spotlight search be deleted or cleared? Why so secretive? The problem is that this is a huge business security risk.
    Fix it Apple!!!
    1) If you have sensitive business information on your phone, put a passcode on it.
    2) Apple doesn't participate here. If you want to give them feedback, here's the link:
    http://www.apple.com/feedback
    Best of luck.

  • Why does iTunes not give me the option to backup my iPhone?

    I have three iPhones in my family. On two of the iPhones, I am able to plug them into my computer and do a local backup (by selecting it in iTunes, right clicking and choosing "Back Up"). There is one phone, however, that does not allow me to choose this option. It takes me directly to the "Welcome to your new iPhone" page in iTunes, and asks me to restore it from a backup. I, however, do not have a backup on this computer, so I clearly do not want to wipe the phone and restore a backup.
    How do I remedie this? Is there another tool that will allow me to create a backup?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    What gets Backed Up
    iTunes http://support.apple.com/kb/ht4946
    iCloud http://support.apple.com/kb/PH2584

Maybe you are looking for