public static void main(String[] args) {
        System.out.println("Azure Content Safety API Sample");
        System.out.println("===============================");
        
        try {
            // Initialize the client
            ContentSafetyClient contentSafetyClient = initializeClient();
            
            // Analyze text examples
            analyzeTextExamples(contentSafetyClient);
            
        } catch (Exception e) {
            System.err.println("Error occurred: " + e.getMessage());
            e.printStackTrace();
        }
    }
Sample code for Azure Content Safety service
Demonstrates various content analysis capabilities including:
- Text analysis
- Image analysis
- Handling different harmful categories
04-PracticalImplementation/samples/java/containerapp/src/main/java/com/microsoft/cognitiveservices/ContentSafetyUtil.java