Java right to left?

view a random? 442 views

/**
* الطبقةالعربية.java
*/
package com.a;

/**
* مدى صعوبة هذا من شأنه ان يكون باللغه العربية او العبرية؟
* على الاقل تفهم فيها كسوف العربية والغايات. Sort of.
* What is most confusing is that part of this file is left to right.
* الخلط بين ما هو أكثر هو ذلك الجزء من هذا الملف هو من اليسار الى اليمين.
* The rest is written right to left.
* بقية ما يكتب من اليمين الى اليسار.
* @author LittleJ2
*
*/
public class الطبقةالعربية {

// مرحبا العال
public الطبقةالعربية() {
String مرحبا
= “مرحبا العال”;

أكتب_شيئا
(مرحبا);
}

public void أكتب_شيئا(String شيئا) {
System.out.println(شيئا);
}

public static void main(String [] نقاشات) {
new الطبقةالعربية();
}
}

Compiles, but doesn’t run well in Eclipse:

java.lang.NoClassDefFoundError: com/a/?????????????
Caused by: java.lang.ClassNotFoundException: com.a.?????????????
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread “main”

Last 5 posts by James Little
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • MisterWong
  • Reddit
  • Scoopit
  • StumbleUpon
  • Technorati
  • rss

Related Posts:

2 Comments

  1. Posted June 30, 2008 at 8:52 am | Permalink

    Actually… eclipse does get very confused… This doesn’t create an error?

    // مرحبا العال
    public الطبقةالعربية() {
    String مرحبا = “مرحبا العال”;

    أكتب_شيئا(مرحبا);
    }

  2. Posted July 5, 2008 at 2:45 pm | Permalink

    I really like the look of arabic and asian character sets… which has a little to do with my interest. I can’t currently understand a word of any of it. If the above makes sense, then we can congratulate Google translation tools!

Post a Comment

Your email is never published nor shared.