Fissehaye Kahsay

Greenhorn
+ Follow
since May 26, 2009
Merit badge: grant badges
For More
Ethiopia
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fissehaye Kahsay

Hello
I want to work on a game project which uses intensive GRAPHICS. Now I must select an appropriate language, Java and C# being the only candidates. I have good experience in java plus I'm SCJP but I'm new to C#. I heard C# is better than java when it comes to graphics and video. So can you guys please give advice?
14 years ago
Hello
I want to work on a game project which uses intensive GRAPHICS. Now I must select an appropriate language, Java and C# being the only candidates. I have good experience in java plus I'm SCJP but I'm new to C#. I heard C# is better than java when it comes to graphics and video. So can you guys please give advice?
14 years ago
thanks for your help
but how can I get the index of 4 in the int[] not in Integer[] ?. I'm forced to use the int[] instead of Integer[] (just calling a method which takes int[])
14 years ago
Hi ranchers
why are the two outputs in the following code -1(unfound). As you can see, there is 4 in the array and I created a list using Array.asList()
14 years ago

shouldn't the output of the above code be "DemoC++". We are using super.s, so the upper class XClass has no knowledge about the subclass YClass. Any help please and takes for your time
thanks a million avi
I got it, it is now very clear
hi java Gurus
why doesn't the code throw an ArrayOutOfBoundsException at run time?

In the first enhanced for loop, during the fourth iteration zero will be assigned to arr[4],which is out of the bound, but it runs fine. Can you help me what is going on?
hi ranchers
I live in Ethiopia(A country in North East Africa). I have been preparing to take scjp 6, but I couldn't get the voucher.The prometric centers here don't have the exam voucher. Is it possible to buy scjp voucher from another country. If it is possible, how can I get it?
thanks in advance
Hi all
I want to localize the GUI parts of some software which my colleagues and I developed. What I exactly want is that all the messages of the GUI should be displayed in a language called Amharic (The national language of Ethiopia) which uses non-English Scripts called Geez.
I have produced a resource bundle named MessageBundle that holds the locale specific .properties file.

Here is a very simple code, I wrote for testing(I used the Net Beans IDE. It has all the necessary things for adding .properties files)

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package i18nsample;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.util.*;
/**
*
* @author Fish
*/
public class I18NSample extends Applet {

/**
* @param args the command line arguments
*/
String language = "am";//am is the language code for Amharic
String country = "ET"; // ET is the country code for Ethiopia
Locale currentLocale= new Locale(language,country);
ResourceBundle messages= ResourceBundle.getBundle("MessageBundle",currentLocale);
Button b0 = new Button(messages.getString("greetings"));//greetings is a key
Button b1 = new Button(messages.getString("farewell")); // farewell is a key
Button b2 = new Button(messages.getString("inquiry")); // inquiry is a key
public void init(){
add(b0);
add(b1);
add(b2);

}
public static void main(String[] args) {
// TODO code application logic here
I18NSample x = new I18NSample();
Frame aFrame = new Frame("Internationalization");
aFrame.addWindowListener(
new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
aFrame.add(x,BorderLayout.CENTER);
aFrame.setSize(300,200);
x.init();
aFrame.setVisible(true);
}

}
and here is the .properties file saved under the file name MessageBundle_am_ET.properties(where "am" is the first two lower case letters for "amharic" and "ET" is the first two upper case letters for Ethiopia).

greetings = \u12A3\u134D\u1295
farewell = \u120D\u1240\u1245
inquiry = \u1328\u122D\u1235
The values of the keys are the unicode representations for specific Geez (the script name) characters.
So far so good
But when I run the program, the output(displayed buttons) was simply the unicode representations, not the Geez Characters themselves. (By the way I'm using "characters" and "scripts" interchangeably)
Can you help where the problem is?
I have attached the output of my program
I really appreciate your help
Many thanks for your time


15 years ago