I'm new, I found this article but I don't understand where I must put code for api
Using the Java API to create new content | Alfresco Documentation
If you use a more up-to-date version of the documentation (i.e. for the current Alffresco version), then there are a lot more topics to get you started in terms of developing with Alfresco.
Retrieving data ...