1 Hello there!
2 Welcome to the first GWeb program!
    2.1 The larch
    2.2 Then we need a method
3 The database
4 Chunks

1 Hello there!

Nicy thing this


<<Hooo>>=

 // A silly comment!


Used in: <Goo.java>

2 Welcome to the first GWeb program!

This is the first program using gweb sections.

2.1 The larch

Lets start with the main class: Look at this cool reference (Then we need a method) aint it cool?


<<Goo.java>>=
class Goo
{
    <Declarations>
<Hooo>
// This is the main class! public static voidt main (String[] args) { sayHi (); sayBye (); } }

2.2 Then we need a method


<<Declarations>>=
public static
void sayHi ()
{
    System.out.println ("Hello World!");
}

Used in: <Goo.java>

Talk a little bit more!


<<Declarations>>=
public static
void sayBye ()
{
    System.out.println ("Bye World!");
}

Used in: <Goo.java>

3 The database

A very complicated database, indeed!


<<database.sql>>=
DROP TABLE IF EXISTS important_data;
CREATE TABLE important_data (
     # unique id
    data_key int(22) NOT NULL AUTO_INCR,

     # The name is useful
    name varchar(255) DEFAULT '' NOT NULL,
    
    PRIMARY KEY (data_key));

 # Thats all folks, remember to add keys if needed!


4 Chunks

<Declarations>
<Goo.java>
<Hooo>
<database.sql>