using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
List<string> list = new List<string>() { "c#", "java", "c", "python", "c++", "rust" };
bool exists = list.Exists(e => e.Equals("java"));
if (exists) {
Console.WriteLine("Exists");
}
else {
Console.WriteLine("Not exist");
}
}
}
/*
run:
Exists
*/