How do I get Unicode chars beyond the ASCII range to display ?

Hello all.
I have just recently started to learn Java.
I want to display the data in a array using Unicode characters, but when I use the unicode code from the code sheet I merely get a ?.
I looked about the net and understand that Java doesnt support none ASCII characters (by default?) , I think its possible to import various codes but not sure about that.
Anyways...
My question is: How do I get the Unicode character 2254 Box Drawing Element to display (also other non standard ASCII ) ? Print("\u2254") results in a ?.
If you are wondering why:
I want to store a map for a game into a data array with the entities represented as normal letters and characters, this map will be generated by the program randomly but I want to see the output of the map to test if its obeying the rules I set out for the map generation.
I figured just read the array and print out the result , but to make it more legible in debugging convert the text characters to box drawing characters.

Both methods you mentioned just generate a question mark instead of the box drawing element I want.
I can get all the normal, ie letters and numbers and the common characters... but beyond that and all I get is a '?' in its place.
Initially I just wanted it to print the character in the legend.
The code below just prints a few lines of text , the legend to decipher the level display, and calls a class to create a level ..then the last call is to call a debug class to display the level that was created.
*   Prelim Code for the Random Dungeon Generator       *
*   used in Dungeon Runner                             *
*   Created : 03/07/2009                               *
public class DungeonGenerator {
      public static void main (String[] args) {
      System.out.println(
           "Prelimary code for the Random Dungeon Generator for Dungeon Runner Game\n\n"
                               );                    // Just a text heading reminder for me
      System.out.println(
           "Test 1 - debug screen - 03 July 2009\n\n"
      System.out.println("Legend: \u2254 = Top Left Corner \t 2 = Top Right Corner");
      System.out.println("        3 = Bot Left Corner \t 4 = Bot Right Corner");
      System.out.println("        L = Left Wall \t\t R = Right Wall");
      System.out.println("        T = Top Wall \t\t B = Bottom Wall");
      System.out.println("        D = Doorway \t\t + = Play Space");
      System.out.println("        E = Exit Entity \t S = Start Entity");
      System.out.println("        . = None Play Space");
      System.out.println("\n----------------------------------------------------\n");
     // Call the LevelGen
     /** This is just a temperary call method
          I am will use another array and a
          loop to call the LevelGen the
          number of levels I decide the
          game will have
     LevelGen levelone = new LevelGen();          // Calls the LevelGen to create a Level
     levelone.displayLevel();                    // Display the level that was generated
                                             // for debugging only
      }     // End Main method
}      // End DungeonGenerator class

Similar Messages

  • How do I get font tags showing the courier font to display on Firefox 4 for Windows 7, 64 bit?

    On pages like the linked one ([http://puppetfetishist.livejournal.com/4071.html]), the courier font does not show, while on other pages like [http://www.mspaintadventures.com/], the courier font displays properly.
    <i><fixed links - edited by moderator></i>

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • I need to replace my laptop Hard drive.  How do I get my iTunes off the old hard drive to an external so I can put it back on the new hard drive?

    I need to replace my laptop Hard drive.  How do I get my iTunes off the old hard drive to an external so I can put it back on the new hard drive?

    Type move itunes library into the google serach bar.
    It has always been very basic to always maintain  abackup copy of your computer.  Do you not have a backup copy?

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • When I open an event, including flagged items, the photos appear one by one, not as thumbnails, so I can't export more than one phot at a time. How do I get iPhoto to show the thumbnails?

    When I open an event, including flagged items, the photos appear one by one, not as thumbnails, so I can't export more than one phot at a time. How do I get iPhoto to show the thumbnails?
    I've tried rebuilding the thumbnail database, but that hasn't helped.

    What version of iPhoto and system are you running?
    Try moving the Zoom slider at the bottom of the iPhoto window all the way to the left.  Does that let more than one photo display in the window?
    OT

  • I have all my songs in my iTunes library on the computer, but when I press the button to sync it, it doesn't put the songs on my iPhone. I have songs from my iPod on here too.  How do I get it to put the songs on my iPhone?

    I have all my songs in my iTunes library on the computer, but when I press the button to sync it, it doesn't put the songs on my iPhone. I have songs from my iPod on here too. How do I get it to put the songs on my iPhone?

    Have you selected the music to sync?

  • I've down loaded adobe flash player but when I try to veiw video on firefox I'm still told that I need adobe flash player. How do I get firefox to see the flash player download?

    I was trying to view a video I uploaded to facebook using firefox. The system told me to down load adobe flash player. I did but still get the message that I need to down load flash player. How do I get firefox to see the down loaded adobe flash player?

    by installing from within Firefox, Internet Explorer has its own version (Active-X).
    Make sure you are starting in the correct place for Flash
    * http://www.adobe.com/software/flash/about/
    If you want to read PDF files in you browser, you might also want
    * http://get.adobe.com/reader/
    After the download,
    #bring up the download manager ("Ctrl+J") and start your installs. As soon as the install comes up,
    #close Firefox with '''File > Exit''' or "Firefox" button > Exit. Give Firefox some time to close.
    #If install does not proceed, '''terminate "firefox.exe"''' and '''"plugin-container.exe"''' from the "Processes" tab in the Windows Task Manager.
    #* Windows 7 shortcut to the WTM is "Ctrl+Shift+Esc"
    #* or on any Windows system from "Ctrl+Shift+Esc" then choose Windows Task Manager.
    #*Make sure that "firefox.exe" is no longer running -- if it is still running then terminate it by selecting the use "End Process" button or from context menu, and do the same for "plugin-container.exe" if it is found there.
    #proceed with the install.
    '''Warning''': this is the Adobe site and they have chosen to to provide crapware along with their own product. Only install the product you were planning to install. Do not install additional products: including -- "Free! McAfee Security Scan Plus" or "Google Chrome". Installing Google Chrome on your own and installing it because it is offered on the Adobe site are two different things.
    Find updates for your installed plugins at http://www.mozilla.com/plugincheck/ mozilla.com/plugincheck
    -- best to use Adobe's site to really see if their plug-ins are up to date.
    Please fix your caps lock or read what you type, do you think anybody could read my answer if I typed in all caps.
    If the above fails to correct the problem, I would try uninstalling Adobe Flash from your system entirely first, from the control panel then "Programs and Features".

  • When I first turned on iMovie all videos from iPhoto automatically were found. Now I have more videos on iphoto, how do I get iMovie to find the new ones?

    When I first turned on iMovie all videos from iPhoto automatically were found. Now I have more videos on iphoto, how do I get iMovie to find the new ones?

    jtcollins wrote:
    if iMovie is open, connect your iPhone to comp. iMovie '11 will now find your phone and look for videos as it would if camera was connected
    (Underline is my emphasis)    
    Hi jt - Alex was actually referring to video clips in iPhoto not appearing in the item "iPhoto Videos" in the Events Library in iMovie - thanks for your post though (the 2 words are very similar).
    John

  • I have been sent a 'word document' in which are a series of boxes about thirty lines long to insure written text. When Pages opens the document it extends these to a whole A4 page how do I get it to retain the original layout

    I have been sent a 'word document' in which are a series of boxes about thirty lines long to insert written text. When Pages opens the document it extends these to a whole A4 page how do I get it to retain the original layout

    You can't change the way Pages import .doc files.
    It was never written that it reproduce exactly the original one.
    From my point of view, as I refuse to give a cent to M...soft, the best way to deal with documents issued by their Office suite is to use the free libreOffice.
    Yvan KOENIG (VALLAURIS, France) jeudi 7 juillet 2011 11:34:19 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • When I read an email on my iPad it remains unread on my macbook. How do I get it to "read" the e-mail on both?

    When I read an email on my iPad it remains unread on my macbook. How do I get it to "read" the e-mail on both?

    I ahve this problem too, my macbook is set up as an imap account for gmail, say I get an email and it shows as new in my gmail, iphone and macbook, and I then read it in my gmail, it is marked read on my iphone but stays as unread on my macbook.
    This is really annoying as if I read emails during the day on another computer I can come back to them all being new on the macbook.
    Is there a fix for this?

  • When I burn my recording on a CD it is labeled in chinese. How do I get it to burn the title in english?

    I have done some recordings using garage band. Under share I select burn to CD and when it is done it comes up in iTunes with it looks to be chinese characters. How can I get it to label the CD in english?
    Bruce

    I found it to be more than what I originally thought. I have been recording audio for self help recordings I am attempting to offer in my practice. I burned one project to cd and it labeles it in what looks like chinese. I burned another recording I did and it labeled it as the correct name but it showed it as another artist name that I have no idea were the name came from. I have a show coming up and need this info to be correct as I am offering these CDs for purchase.
    Bruce

  • When I AirPrint it only does small portions of the page. How do I get it to print the whole page?

    When I AirPrint The printer only prints a portion of the page.  How do I get it to print the whole page.

    It would help if you stated what printer you are using and what application you are doing the printing from. Also, what are you printing?

  • Hey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    ey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages  it only show imessage and message count )HELP)

    At the bottom of the page Settings > Messages you should have a section headed "SMS/MMS" Turn MMS messaging on then you can turn group message on.

  • How can I get all photos from the camera roll onto the photo stream so they will share between iphone and ipad?

    How can I get all photos from the camera roll, and all new pictures taken, to get on the photostream so they can share between iphone and ipad?

    When turning PhotoStream on with photos available in the Camera Roll, only photos captured by the iPhone or saved on the iPhone are placed in the PhotoStream.
    For all photos that were in the Camera Roll prior to turning PhotoStream on, import the photos with your computer and add the photos to your PhotoStream on your computer.

Maybe you are looking for

  • 2.0 bios and video lag

    I flashed the BIOS on my 875P NEO-FIS2R (old 1.x version Neo) to 2.0 and now all my games have significatly lower frame rates.  I've tried installing the latest drivers for EVERYTHING in my computer and nothing seems to help.  Is there a setting in t

  • Report on failed sync

    I have more than 100 PHD users and it happens time to time that a profile not get synced with the server at login and logout, I need to get a report of which profile has failed the syncing? Is there anyway?

  • How to pass tables in Guided Procedures from VC

    Hi experts! I'am working in a workflow scenario, more precisely an approve-reject workflow scenario. I've defined all the start and the end points belonging to the respective iviews (I mean the sender and the approver iviews), following the  [Modelin

  • Material Class as COPA Characteristcs

    Dear All, Can anybody guide me on how to create material class characteristics as COPA characteristcis so that the same can be updated in COPA. The same are not available in the tables which are available for creation of COPA characteristics. Best Re

  • 1080P sequence with 720i footage (interfield jitter correction needed)

    OK, heres something that has me stumped. This Motocross piece Im working on has a lot of 1080p footage as well as some archival 720i b roll. I created a 1080P sequence. In some of the 720i shots Im seeing signs of bad interlacing. Since the sequence