forked from sharkdp/bat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
39 lines (37 loc) · 900 Bytes
/
test.java
File metadata and controls
39 lines (37 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import java.util.Scanner;
/* This Java program was submitted to help bat
* with its syntax highlighting tests
*/
public class Main
{
public static void main(String[] arg)
{
Scanner st = new Scanner(System.in);
int t;
t = st.nextInt();
String tem;
tem = st.nextLine();
for(int zz=0;zz<t;zz++)
{
String str;
str = st.nextLine();
int n = str.length();
char ch;
for(int i=0;i<n;i++)
{
ch = str.charAt(i);
if(ch=='a')
System.out.print("n");
else if(ch=='s')
System.out.print("i");
else
System.out.print(ch);
}
System.out.println();
}
while(t!=0) {
// Decrement t
t -= 1;
}
}
}