نصائح و استشارات برمجية
前往频道在 Telegram
• نصائح واستشارات برمجية متعلقة باسئلة تم طرحها • لطرح استفسار او سؤال: @m4md24
显示更多1 517
订阅者
+124 小时
+67 天
无数据30 天
帖子存档
• بالنسبة لموضوع اختيار المجال المناسب فا اقرأ دا:
- t.me/Software_Consulting/2321
• و بما انك مبتدئ فا اقرأ دول:
- t.me/Software_Consulting/2517
- t.me/NULLEXIA/132
- t.me/Software_Consulting/59
23 11月 2023, 08:02
السلام عليكم انا جديدة معكم اريد تعلم البرمجة من الصفر هل ممكن مساعدة
23 11月 2023, 08:02
Object variable = 5;
try {
int intValue = (int) variable;
System.out.println("The variable is of type int");
} catch (ClassCastException e) {
System.out.println("The variable is not of type int");
}23 11月 2023, 05:45
هذي الطريقة باقي ما اخذناها ف ممنوع استخدمها ، فيه طريقة غيرها؟
23 11月 2023, 05:45
Object variable = 5;
if (variable instanceof Integer) {
System.out.println("The variable is of type Integer");
} else {
System.out.println("The variable is not of type Integer");
}23 11月 2023, 05:43
TextView textView = (TextView) view;
textView.setPaintFlags(textView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
String taskTitle = textView.getText().toString();
SharedPreferences preferences = getSharedPreferences("MyPreferences", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
editor.putBoolean(taskTitle, true);
editor.apply();
• و لما تيجي تستدعي اللي تم حفظه بتكتبي دا ⬇️
boolean isStrikethrough = preferences.getBoolean(taskTitle, false);
if (isStrikethrough) {
textView.setPaintFlags(textView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
}22 11月 2023, 23:51

