import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("文字列:");
String input = scanner.nextLine();
String replaced = input.replace("\\", "/").replace("を", "に");
System.out.println("文字列: " + replaced);
}
}
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme