Console output in Java

System.out.println can be used for outputting a line to the console.

public void Foo {
→ Continue Reading

Logging output in Objective-C (Cocoa Framework)

NSLog can be used for outputting messages to the console for debugging purposes.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    // Override point for customization after application launch.

    // Add the tab bar controller's view to the window and display.
    [self.window addSubview:tabBarController.view];
    [self.window makeKeyAndVisible];

	NSLog(@"Application didFinishLaunchingWithOptions");

    return YES;


Console output

→ Continue Reading

Printing to the console in C#

The Console.WriteLine method can be used to print a line to the console.

public void Foo(){

→ Continue Reading

Creating a class in PHP

Creating a class  in PHP consists of the following code.


class Foo {



→ Continue Reading
  • Advertisement

  • Categories