View Code of Problem 84

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()) {
			String s = scanner.nextLine();
			String ss = s.toLowerCase();
			if(ss.contains("salt")) {
				System.out.println(s);
			}
		}
	}
}

Double click to view unformatted code.


Back to problem 84