You need to sign in to do that
Don't have an account?

Declare and populate array of string containing month names
Declare and populate array of string containing month names viz. January, February
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Go through the example below
Apex class:
public class DisplayArrayList{
public list<string> Arraylist{get;set;}
public DisplayArrayList(){
Arraylist=new list<string>();
Arraylist.add('January');
Arraylist.add('February');
Arraylist.add('March');
Arraylist.add('April');
Arraylist.add('May');
Arraylist.add('June');
Arraylist.add('July');
Arraylist.add('August');
Arraylist.add('September');
Arraylist.add('October');
Arraylist.add('November');
Arraylist.add('December');
}
}
Visualforce Page:
<apex:page controller="DisplayArrayList">
{!Arraylist}
</apex:page>
if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
All Answers
are you looking for something like this ??
List<String> months = new List<String>{'January','February','March','April','May','June','July','August','September','October','November','December'};
Go through the example below
Apex class:
public class DisplayArrayList{
public list<string> Arraylist{get;set;}
public DisplayArrayList(){
Arraylist=new list<string>();
Arraylist.add('January');
Arraylist.add('February');
Arraylist.add('March');
Arraylist.add('April');
Arraylist.add('May');
Arraylist.add('June');
Arraylist.add('July');
Arraylist.add('August');
Arraylist.add('September');
Arraylist.add('October');
Arraylist.add('November');
Arraylist.add('December');
}
}
Visualforce Page:
<apex:page controller="DisplayArrayList">
{!Arraylist}
</apex:page>
if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Error: DisplayArrayList Compile Error: The method String getArraylist() is referenced by Visualforce Page (MonthsDisplay) in salesforce.com. Remove the usage and try again
First you should save your "MonthsDisplay" Visualforce page by removing getArraylist() method (may be Like : Arraylist) from your page..
After that save your controler.
January > February > …