Author Archives: Ferhat

Console output in Java

System.out.println can be used for outputting a line to the console. public void Foo { System.out.println("Bar"); }

Posted in Java | Leave a comment

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; } Output:

Posted in Objective-C | Leave a comment

Printing to the console in C#

The Console.WriteLine method can be used to print a line to the console. public void Foo(){ Console.WriteLine("Bar"); } //

Posted in C# | Leave a comment

Creating a class in PHP

Creating a class  in PHP consists of the following code. <?php class Foo { } ?> //

Posted in PHP | Leave a comment
  • Advertisement

  • Categories