I have a problem with unicodes in java. I am programming in eclipse and need to edit "Hello World!" followed by a heart and a penguin. Everything works fine besides the penguin. Somehow I can not edit an unicode with more than 4 characters. This is my code:
package HelloWorld;
public class HelloWorld extends MiniJava{
public static void main(String[] args) {
String s1 = "Hello World! ";
char c1 = '\u2661';
char c2 = ''; //\u1F427
write (s1+c1+c2);
}
}
Can you help me with that?