static void Cleanup() { System.out.println("\nCleaning up ..."); StreamSeedUsers.Stop(); CrawlTweets.Stop(); DB.Close(); StdoutWriter.Stop(); }
private void ReadFull() throws SQLException { db.Start(); String res = db.ReadFull(); db.Close(); System.out.println(res); // go to the beginning Menu(); }
private void Search() throws SQLException { System.out.println("Name:"); String text = InputString(); db.Start(); String res = db.Search(text); db.Close(); System.out.println(res); // go to the beginning Menu(); }
public PhoneBook() throws SQLException { scan = new Scanner(System.in); db = new DB(); db.Start(); db.CreateTable(); db.Close(); System.out.println("PhoneBook v0.01\n"); Menu(); }
private void AddContact() throws SQLException { System.out.println("Name:"); String name = ""; name = InputString(); System.out.println("Phone:"); String phone = InputString(); db.Start(); db.Write(name, phone); db.Close(); System.out.println("Added!\n"); // go to the beginning Menu(); }