---
# System prepended metadata

title: Code

---

# Code
``` java
public class TrickyInit {
    private static class Foo {
        public static String config = "foo";
        public static Qux qux = Qux.instance;
    }

    private static class Bar {
        public static Qux qux = Foo.qux;
    }

    private static class Qux {
        public static Qux instance = new Qux(Foo.config);
        public String config;
        public Qux(String c) { config = c; }
    }

    public static void main(String[] args) {
        System.out.println("Qux=" + Qux.instance);
        System.out.println("Foo.qux=" + Foo.qux);
        System.out.println("Bar.qux=" + Bar.qux);
    }
}

```

 mysqli_query($db,"
 INSERT INTO stockdetails (`itemdescription`,`itemnumber`,`sellerid`,`purchasedate`,`otherinfo`,`numberofitems`,`isitdelivered`,`price`) VALUES ('$itemdescription','$itemnumber','$sellerid','$purchasedate','$otherinfo','$numberofitems','$numberofitemsused','$isitdelivered','$price')"
 ) or die(mysqli_error($db));