could you help me resolve my problem ?
I wrote this simple Java program:
import java.util.Scanner; public class Something { public static void main(String args[]) { Scanner s = new Scanner(System.in); char c1,c2; c1=s.findWithinHorizon(".", 0).charAt(0); c2=s.findWithinHorizon(".", 0).charAt(0); System.out.println(c1); System.out.println(c2); s.close(); } } When I press tf on my keyboard, the following prints on my console:
t r What I am looking for is a single-line output, like
tr instead of
t r I tried System.out.println(c1, c2) but it is not working.
Thank you in advance.
System.out.print.