Character Entities

G'day all;

i'm constructing a program that will tell the user properties of a given quadratic, using the parameters a, b, and c. (ax2 + bx + c). i'm finished the programming aspect, although in my range method, i'm unable to find the character entity code for "ER" in {y|yER}. I hope someone knows what i'm talking about. It took me a while to find out the code for a superscript 2. Any help?

[410 byte] By [IatolaAweworthya] at [2007-11-27 1:55:47]
# 1
?
hiwaa at 2007-7-12 1:29:19 > top of Java-index,Java Essentials,New To Java...
# 2

You mean "the set of all y where y is a member of R"?

Here's a link to the Unicode code charts, at least to the part which describes symbols:

http://www.unicode.org/charts/symbols.html

There's a bunch of pages with "math" in their names, both the "is a member of" and the "fancy R denoting the real numbers" symbols should be somewhere in those pages. Bear in mind that not all fonts may not be able to render those symbols.

DrClapa at 2007-7-12 1:29:19 > top of Java-index,Java Essentials,New To Java...
# 3
thanks, that helps a lot, but how do i code them into my program? naturally i dont just stick "1D716" in the middle of a string. or do i..?
IatolaAweworthya at 2007-7-12 1:29:19 > top of Java-index,Java Essentials,New To Java...
# 4

If the hexadecimal representation of a character is "abcd" then you can put a Unicode escape in your Java code, looking like this:String thatChar = "\uabcd";

If you want a character that isn't in the BMP (Basic Multilingual Plane, I think) then you have to be using Java 5 and then I think you can put up to six hexadecimal characters in a Unicode code. I think.

DrClapa at 2007-7-12 1:29:19 > top of Java-index,Java Essentials,New To Java...