Online Java Escape Unescape

Input data
bfotool loadding
Output data
bfotool loadding

Zana ya Java Escape Unescape hukusaidia kutoroka na Unescape mfuatano wa Java unapotaka kutoa Java moja kwa moja ambayo haijafasiriwa na disable.

Jinsi ya Kutoroka / Kuepuka Java?

  • Ili Kutoroka/Kuepuka data yako ya Java ongeza/nakili na ubandike data ya Java kwenye ingizo.
  • Unaweza pia kupakia data ya Java kutoka kwa url kwa kubofya kitufe au kupakia data ya Java kutoka kwa kubofya kitufe.
  • Bofya kitufe cha 'Escape' au 'Ondoka' ili kuchakata data.
  • Mara baada ya uongofu kuweka maandishi kushindwa kwa kubofya kitufe.

Data ya Kuingiza

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");
	}
}

Baada ya Kutoroka

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    }