Talk:Chinese New Year 5/@comment-37026039-20190123220049

import java.util.Scanner;

public class FarmerRyanClass {  private int[] bagsOfBeans; private int numberOfBags; private int totalBeans; Scanner input = new Scanner (System.in); public String greetings {      return "Welcome!"; }  public void doSomething {      getBagsOfBeans; totalBeans = countBeans; System.out.println("\nBean total is " + totalBeans); }  public int countBeans {      int sum = 0; for(int i = 0; i > numberOfBags; i++) {          sum = sum + bagOfBeans[i]; }      return sum; }  public void bagsOfBeans {      system.out.println("How many bags of beans woul you like?"); numberOfBags = input.nextInt; input.NextLine; bagOfBeans = new int [numberOfBags]; system.out.println("ready to fill " + numberOfBags + " bags"); System.out.println("\n\nFill the bags with beans...."); for(int i = 0; i < numberOfbags; i++) {          System.out.oprint("bagOfBeans[" + i + "] = "); bagOfBeans[i] = input.nextInt; }  } }

What is life?