daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Created by Astral
  2.  */
  3. import java.util.Scanner;
  4. import java.util.ArrayList;
  5.  
  6. public class main {
  7.  
  8.     public static void main(String[] args) throws Exception {
  9.         ArrayList<String> names = new ArrayList<String>();
  10.         String operations;
  11.         Scanner op = new Scanner(System.in);
  12.         names.add("Bulbasaur\n");
  13.         names.add("Ivysaur\n");
  14.         names.add("Venusaur");
  15.         names.add("Charmander");
  16.         names.add("Charmeleon");
  17.         names.add("Charizard");
  18.         names.add("Squirtle");
  19.         names.add("Wartortle");
  20.         names.add("Blastoise");
  21.         names.add("Caterpie");
  22.         names.add("Metapod");
  23.         names.add("Butterfree");
  24.         names.add("Weedle");
  25.         names.add("Kakuna");
  26.         names.add("Beedrill");
  27.         names.add("Pidgey");
  28.         names.add("Pidgeotto");
  29.         names.add("Pidgeot");
  30.         names.add("Rattata");
  31.         names.add("Raticate");
  32.         names.add("Spearow");
  33.  
  34.         System.out.println("Dextop version 0.1");
  35.         System.out.println("Created by Astral");
  36.         System.out.println("this version contains a total of 20 of the original Pokemon");
  37.         operations = op.nextLine();
  38.  
  39.  
  40.         switch (operations) {
  41.             case "+":
  42.                 for (String e : names)
  43.                     System.out.println(e);
  44.                 break;
  45.  
  46.             case "-":
  47.                 Scanner search = new Scanner(System.in);
  48.                 System.out.println("Enter a pokemon to search ");
  49.                 String find = search.nextLine();
  50.  
  51.                 if (find.equals(names.get(0))) {
  52.                     System.out.println("ID:    NAME:    TYPE1:    TYPE2:    ");
  53.                     System.out.println("001 " + "Bulbasaur " + "Grass " + "Poison");
  54.                 } else if (find.equals(names.get(1))) {
  55.                     System.out.println("ID:    NAME:    TYPE1:    TYPE2:    ");
  56.                     System.out.println("002 " + "Ivysaur " + "Grass " + "Poison");
  57.                 } else if (find.equals(names.get(2))) {
  58.                     System.out.println("ID:    NAME:    TYPE1:    TYPE2:    ");
  59.                     System.out.println("003 " + "Venusaur " + "Grass " + "Poison");
  60.                 } else if (find.equals(names.get(3))) {
  61.                     System.out.println("ID:    NAME:    TYPE1:    TYPE2:    ");
  62.                     System.out.println("004 " + "Charmander " + "Fire " + "None");
  63.         ```
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