[Solved] Java StringBuffer cannot print out apostrophe

Tom, The problem is that one string is longer than the other one. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String elso = sc.nextLine(); String masodik = sc.nextLine(); String longestString = elso; String shortestString = masodik; if (shortestString.length() > longestString.length()){ shortestString = elso; longestString = … Read more