It's not a secret anymore!
The moose likes Java in General and the fly likes Handling special cases in the Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Handling special cases in the Java?" Watch "Handling special cases in the Java?" New topic
Author

Handling special cases in the Java?

Chetan Dorle
Ranch Hand

Joined: Aug 06, 2009
Posts: 128

Hi All,


How can i type the characters


ãÔæ

in the Java editor ?

What these type of character called as ?

Thanks in advance.

Regards,
Chetan.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32689
    
    4
Those are letters. I think the easiest way to use them is to change the language of the keyboard on your PC. Which editor are you using? The command prompt on DOS/Windows doesn't support all those characters and may print something peculiar instead.
Chetan Dorle
Ranch Hand

Joined: Aug 06, 2009
Posts: 128


I am using eclipse for my development .

Thanks.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12926
    
    3

If you are using Windows, press Windows + R and then enter: charmap

That will start the character map application, in which you can pick letters and other characters that are not on your keyboard by hand and copy & paste them into your editor.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Markas Korotkovas
Greenhorn

Joined: Jan 27, 2011
Posts: 21

Excellent suggestion Jesper! Just an additional comment if you don't want to manually copu/paste characters most of them have a shortcut associated. charmap will show it in bottom right (if applicable Alt + ...). You just hold down Alt and type the number like Alt + 0212 then release Alt and Presto! Please be sure to select the correct font as well (to match the editor font in Eclipse) as character mappings may be different
Chetan Dorle
Ranch Hand

Joined: Aug 06, 2009
Posts: 128

Thanks guys .....


As i am using linux can anyone suggest shortcuts for this ...

Thanks in advance...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32689
    
    4
  • Right-click a panel
  • Add to panel
  • Character Palette
  • I have just áddéd à ©häraÇter palette. Click the letter or caret to change the options, then ctrl-V to paste the letter.

    But I still think it might be easier to change your keyboard language; I have mine set to German and English (UK) and it occasionally changes spontaneously and this sort of character appears mzsteriouslzÖ öäüß.
  • System
  • Preferences
  • Keyboard
  • Layouts tab
  • Add . . . etc
  •  
    I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: Handling special cases in the Java?
     
    Similar Threads
    doubt about array construction
    chars
    NX:what is type-safe?
    Test class cannot find other class
    What is Coffee Cup Symbol of Java Means?