Java Escape Unescape kayan aiki yana taimaka muku tserewa da Uescape Java kirtani lokacin da kuke son fitar da Java kai tsaye ba fassara ta mai lilo ba.
Yadda Ake Gujewa/ Rashin Fadawa Java?
- Don Tserewa/Rarewa bayanan Java ɗin ku ƙara/ kwafi da liƙa bayanan Java cikin shigarwar.
- Hakanan zaka iya loda bayanan Java daga url ta danna maɓallin ko loda bayanan Java daga kwamfutar ta danna maɓallin.
- Danna maɓallin 'Escape' ko 'Unescape' don aiwatar da bayanan.
- Da zarar hira da aka yi za ka iya sauke fayil ta danna maballin.
Bayanan shigarwa
public static void main(String[] args) {
System.out.println("length array: ");
Scanner sn = new Scanner(System.in);
int n = sn.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
System.out.println("Enter a[" + i + "]:");
a[i] = sn.nextInt();
}
System.out.println("");
for (int i = 0; i < n ; i++) {
System.out.print(a[i] + " ");
}
System.out.println("");
int j = 0;
for (int i = 0; i < n / 2; i++) {
if (a[i] == a[n - 1 - i]) {
j++;
}
}
if (j == n/2) {
System.out.println("Array");
} else {
System.out.println("Array");
}
}
Bayan Tserewa
public static void main(String[] args) {\r\n System.out.println(\"length array: \");\r\n Scanner sn = new Scanner(System.in);\r\n int n = sn.nextInt();\r\n int[] a = new int[n];\r\n for (int i = 0; i < n; i++) {\r\n System.out.println(\"Enter a[\" + i + \"]:\");\r\n a[i] = sn.nextInt();\r\n }\r\n \r\n System.out.println(\"\");\r\n for (int i = 0; i < n ; i++) {\r\n System.out.print(a[i] + \" \");\r\n }\r\n System.out.println(\"\");\r\n int j = 0;\r\n for (int i = 0; i < n / 2; i++) {\r\n if (a[i] == a[n - 1 - i]) {\r\n j++;\r\n }\r\n }\r\n if (j == n/2) {\r\n System.out.println(\"Array\");\r\n } else {\r\n System.out.println(\"Array\");\r\n }\r\n }