SHARE
TWEET

ewe

a guest Jan 24th, 2020 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. //import java.lang.String;
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Scanner sc = new Scanner(System.in);
  6.         String str=new String(sc.next());
  7.         char[] chars=str.toCharArray();
  8.         String temp="";
  9.         for (int i = 0; i <str.length() ; i++) {
  10.             if(temp.contains(chars[i]+"")==false){
  11.                 temp+=chars[i];
  12.         }
  13.     }
  14.        
  15.         if(temp.contains("helo")==true){
  16.             System.out.println("YES");
  17.         }
  18.         else{
  19.             System.out.println("NO");
  20.         }
  21. }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top