مطلوب برنامج بلغة جافا يقوم بالبحث عن قيمة الحرف في الشفرة ASCII
- برمجة جافا
- 2022-04-26
- esmailrabie902139106278
الأجوبة
public class AsciiValue {
public static void main(String[] args) {
char ch = 'a';
int ascii = ch;
// You can also cast char to int
int castAscii = (int) ch;
System.out.println("The ASCII value of " + ch + " is: " + ascii);
System.out.println("The ASCII value of " + ch + " is: " + castAscii);
}
}
output:
The ASCII value of a is: 97 The ASCII value of a is: 97
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال