Skip to content

Instantly share code, notes, and snippets.

Created Jul 10, 2012
What would you like to do?
Starting without a main method
using System;
namespace Demo {
class Application {
static Application() {
String args = Environment.CommandLine;
Console.WriteLine("Called with arguments {0}", args);
static void Main() { }
package demo;
class Application {
static {
final String args = System.getProperty("");
System.out.printf("Called with arguments: %s\n", args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment