and also errors for adding items and selecting items
AndroidRuntime:
[javac] Compiling 332 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:177: error: cannot find symbol
[javac] firstrow.clear();
[javac] ^
[javac] symbol: method clear()
[javac] location: variable firstrow of type String
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:178: error: cannot find symbol
[javac] lastrow.clear();
[javac] ^
[javac] symbol: method clear()
[javac] location: variable lastrow of type String
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:202: error: cannot find symbol
[javac] firstrow.add(i);
[javac] ^
[javac] symbol: method add(int)
[javac] location: variable firstrow of type String
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:204: error: cannot find symbol
[javac] for (int i = 0; i<=firstrow.length();i++)
[javac] ^
[javac] symbol: method length()
[javac] location: variable firstrow of type String
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:206: error: cannot find symbol
[javac] dynamic(firstrow.select(i),-6381922,(addmonth - 1));
[javac] ^
[javac] symbol: method select(int)
[javac] location: variable firstrow of type String
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:81: error: unexpected type
[javac] private List<int> firstrow = new ArrayList<>();
[javac] ^
[javac] required: reference
[javac] found: int
[javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/sohamtshah2005/Datepicker/Datepicker.java:82: error: unexpected type
[javac] private List<int> lastrow = new ArrayList<>();
[javac] ^
[javac] required: reference
i want the lastrow and firstrow variable to store int values in the list
There isn't a method called select(int) in the class ArrayList. Use get(int) instead.Also you can read here the Android Documentation for the ArrayList, so you know what is the right method names you should use: https://developer.android.com/reference/java/util/ArrayList