Technology: Apex

How to create Opportunity Line Item using Apex in Salesforce?

 - 
Sample Code: We cannot assign Product2Id to OpportunityLineItem. Cheers!!!

Convert Comma Separated String to a List Using Apex

 - 
Salesforce provides String class which can be used to work with string. You can use the Split method. For Example