Alat Java Escape Unescape mbantu sampeyan uwal lan Unescape Java string nalika sampeyan pengin output Jawa langsung ora diinterpretasikake dening browser.
Carane Uwal/Unescape Java?
- Kanggo Escape/Unescape data Java sampeyan nambah / nyalin lan nempel data Jawa menyang input.
- Sampeyan uga bisa mbukak data Jawa saka url kanthi ngeklik tombol utawa mbukak data Jawa saka komputer kanthi ngeklik tombol.
- Klik tombol 'Uwal' utawa 'Unescape' kanggo ngolah data.
- Sawise konversi rampung sampeyan bisa ngundhuh file kanthi ngeklik tombol.
Data Input
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");
}
}
Sawise Uwal
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 }