الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Java 2Se With Jdeveloper 11G

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته



أرجو من خبراء لغة الجافا شرح هذه الموضوعات بالتفصيل ولكم جزيل الشكر




1-Bitwise Operators


2-Code Points and Code Units


-To get at the ith code point, use the statements
int index = greeting.offsetByCodePoints(0, i);
int cp = greeting.codePointAt(index); ماذا يعني هذا الكلام وما هو ال code point
-Why are we making a fuss about code units? Consider the sentence
is the set of integers
The character requires two code units in the UTF-16 encoding. Calling
char ch = sentence.charAt(1)
doesn’t return a space but the second code unit of . To avoid this problem, you should
not use the char type. It is too low-level.
If your code traverses a string, and you want to look at each code point in turn, use
these statements:
int cp = sentence.codePointAt(i);
if (Character.isSupplementaryCodePoint(cp)) i += 2;
else i++;
Fortunately, the codePointAt method can tell whether a code unit is the first or second half
of a supplementary character, and it returns the right result either way. That is, you can
move backwards with the following statements:
i--;
int cp = sentence.codePointAt(i);
if (Character.isSupplementaryCodePoint(cp)) i--;

وماذا يعني هذا
-• StringBuilder appendCodePoint(int cp)
appends a code point, converting it into one or two code units, and returns this.
• void setCharAt(int i, char c)
sets the ith code unit to c.
• StringBuilder insert(int offset, String str)
inserts a string at position offset and returns this.
--------------------------------------------------------------------
وأخيرا
كيف يمكنني تفعيل الـ stuart console in jdeveloper 11g
مثلا اقوم بكتابة هذا الكود داخل البرنامج ولم يقوم بتنفيذه وعند تنفيذه عن طريق cmd يقوم بتنفيذة

package test;

import java.io.Console;


public class TestClass {
public static void main(String[] args) {
TestClass testClass = new TestClass();

Console cons = System.console();
String username = cons.readLine("User name: ");
char[] passwd = cons.readPassword("Password: ");

}
}

وشكرا جدا جدا

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.