Hi everyone,
I have this code and I would like two combine the two print statements in one because right now it just does the first print statement.
Code:
import java.io.*;
import java.util.Scanner;
public class ReadAndWrite{
public static void main(String args[]) throws IOException {
Scanner sc = new Scanner(new File("javaOutput.java"));
while(sc.hasNextLine()){
System.out.println(sc.nextLine().replace("01", "1212"));
System.out.println(sc.nextLine().replace("-", ""));
}
}
}
you help is really needed and appreciated ,,

