public class test
{
public static void main(String [] args)
{
 int [] t = new int [5];
 for(int i = 0;i<t.length;i++)
 {
   t[i] = i;
 }
  System.out.println(t.length+" "+(t.length-1));
  printarray(t);
  System.out.println(arraysum(t));
  System.out.println("--------- \n \n \n");

  String one = KeysIn.readString();
  String two = "Hello";
  String three = "Goodbye";

  boolean answer;
  boolean answert;
  boolean answerth;
  boolean answerf;

  answer = (one==two);
  answert = (one.equals(two));
  answerth = (one==three);
  answerf = (one.equals(three));

  System.out.println(answer+" "+answert+" "+answerth+" "+answerf);

  String [] s1 = {"hello", "Goodbye", "start", "finish"};
  PrintArray(s1);
  
  String [] potions = {"Cure light wounds (potion) (50 gp)", "Endure elements (potion) (50 gp)", "Hide from animals (potion) (50 gp)", "Hide from undead (potion) (50 gp)", "Jump (potion) (50 gp)", "Mage armor (potion) (50 gp)", "Magic fang (potion) (50 gp)", "Magic stone (oil) (50 gp)", "Magic weapon (oil) (50 gp)", "Pass without trace (potion) (50 gp)", "Protection from (alignment) (potion) (50 gp)", "Remove fear (potion) (50 gp)", "Sanctuary (potion) (50 gp)", "Shield of faith +2 (potion) (50 gp)", "Shillelagh (oil) (50 gp)", "Bless weapon (oil) (100 gp)", "Enlarge person (potion) (250 gp)", "Reduce person (potion) (250 gp)", "Aid (potion) (300 gp)", "Barkskin +2 (potion) (300 gp)", "Bear's endurance (potion) (300 gp)", "Blur (potion) (300 gp)", "Bull's strength (potion) (300 gp)", "Cat's grace (potion) (300 gp)", "Cure moderate wounds (potion) (300 gp)", "Darkness (oil) (300 gp)", "Darkvision (potion) (300 gp)", "Delay poison (potion) (300 gp)", "Eagle's splendor (potion) (300 gp)", "Fox's cunning (potion) (300 gp)", "Invisibility (potion or oil) (300 gp)", "Lesser restoration (potion) (300 gp)", "Levitate (potion or oil) (300 gp)", "Misdirection (potion) (300 gp)", "Owl's wisdom (potion) (300 gp)", "Protection from arrows 10/magic (potion) (300 gp)", "Remove paralysis (potion) (300 gp)", "Resist energy (type) 10 (potion) (300 gp)", "Shield of faith +3 (potion) (300 gp)", "Spider climb (potion) (300 gp)", "Undetectable alignment (potion) (300 gp)", "Barkskin +3 (potion) (600 gp)", "Shield of faith +4 (potion) (600 gp)", "Resist energy (type) 20 (potion) (700 gp)", "Cure serious wounds (potion) (750 gp)", "Daylight (oil) (750 gp)", "Displacement (potion) (750 gp)", "Flame arrow (oil) (750 gp)", "Fly (potion) (750 gp)", "Gaseous form (potion) (750 gp)", "Greater magic fang +1 (potion) (750 gp)", "Greater magic weapon +1 (oil) (750 gp)", "Haste (potion) (750 gp)", "Heroism (potion) (750 gp)", "Keen edge (oil) (750 gp)", "Magic circle against (alignment) (potion) (750 gp)", "Magic vestment +1 (oil) (750 gp)", "Neutralize poison (potion) (750 gp)", "Nondetection (potion) (750 gp)", "Protection from energy (type) (potion) (750 gp)", "Rage (potion) (750 gp)", "Remove blindness/deafness (potion) (750 gp)", "Remove curse (potion) (750 gp)", "Remove disease (potion) (750 gp)", "Tongues (potion) (750 gp)", "Water breathing (potion) (750 gp)", "Water walk (potion) (750 gp)", "Barkskin +4 (potion) (900 gp)", "Shield of faith +5 (potion) (900 gp)", "Good hope (potion) (1,050 gp)", "Resist energy (type) 30 (potion) (1,100 gp)", "Barkskin +5 (potion) (1,200 gp)", "Greater magic fang +2 (potion) (1,200 gp)", "Greater magic weapon +2 (oil) (1,200 gp)", "Magic vestment +2 (oil) (1,200 gp)", "Protection from arrows 15/magic (potion) (1,500 gp)", "Greater magic fang +3 (potion) (1,800 gp)", "Greater magic weapon +3 (oil) (1,800 gp)", "Magic vestment +3 (oil) (1,800 gp)", "Greater magic fang +4 (potion) (2,400 gp)", "Greater magic weapon +4 (oil) (2,400 gp)", "Magic vestment +4 (oil) (2,400 gp)", "Greater magic fang +5 (potion) (3,000 gp)", "Greater magic weapon +5 (oil) (3,000 gp)"};
  System.out.println(potions.length);

  String t1 = "testing";
  t1 += s1[0];
  System.out.println(t1);
  t1 += " " + s1[1];
  System.out.println(t1);




 }
 public static int arraysum(int [] array)
 {
   int sum = 0;
   for(int  i = 0;i<array.length;i++)
   {
     sum = sum + array[i];
   }
   return sum;
 }
 public static void printarray(int [] array)
 {
   for(int i = 0;i<array.length;i++)
   { 
     System.out.println(array[i]);
   }
 }
 public static void PrintArray(String [] array)
 {
   for(int i = 0; i<array.length;i++)
   {
     System.out.println(array[i]);
   }
 }
}

