basics Of Sales Froce
Wednesday, 28 June 2017
Code in Apex to get Maximum Number from an Array
Integer [] a=new Integer[]{10,20,30,40};
Integer currentMax=a[0];
for(integer i =1;i<=a.size()-1;i++){
if(currentMax<a[i]){
currentMax=a[i];
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment