about summary refs log tree commit diff stats
path: root/dwm.html
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.html')
-rw-r--r--dwm.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/dwm.html b/dwm.html
index 22f2cb3..491daeb 100644
--- a/dwm.html
+++ b/dwm.html
@@ -85,21 +85,21 @@
 			larsremote, wmiir and what not...
 			</li>
 			<li>
-			dwm is only intended to fit Anselms needs. That means, Anselm
-			<b>does not</b> want feedback to dwm. If you ask for support,
-			feature requests, or if you report "bugs" (<i>real bugs are welcome
-			though</i>), they will be <b>ignored</b> with a high
+			Anselm <b>does not</b> wants stupid feedback to dwm. If you ask for
+			support, feature requests, or if you report "bugs" (<i>real bugs
+			are welcome though</i>), they will be <b>ignored</b> with a high
 			chance.  However you are free to download and distribute/relicense
 			it, with the conditions of the <a
 			href="http://wmii.de/cgi-bin/hgwebdir.cgi/dwm?f=f10eb1139362;file=LICENSE;style=raw">MIT/X Consortium license</a>.
 			</li>
 		</ul>
 		<h3>Documentation</h3>
-		There is a <a href="http://wmii.de/cgi-bin/man/man2html?query=dwm">man page</a>.
-		<h3>Screenshot</h3>
-		<p>
-		<a href="http://wmii.de/shots/dwm-20060714.png">Click here for a screenshot</a> (20060714)
-		</p>
+		<ul>
+			<li><a href="http://wmii.de/cgi-bin/man/man2html?query=dwm">Man page</a></li>
+			<li><a href="http://wmii.de/shots/dwm-20060714.png">Screenshot</a> (20060714)</li>
+			<li>Mailing List: <a href="http://wmii.de/cgi-bin/mailman/listinfo/dwm">dwm at wmii dot de</a> <a href="http://wmii.de/pipermail/dwm/">(Archives)</a></li>
+			<li>IRC channel: <code>#dwm</code> at <code>irc.oftc.net</code></li>
+		</ul>
 		<h3>Development</h3>
 		<p>
 		dwm is actively developed in parallel to wmii. You can <a href="http://wmii.de/cgi-bin/hgwebdir.cgi/dwm">browse</a> its source code repository or get a copy using <a href="http://www.selenic.com/mercurial/">Mercurial</a> with following command:
00; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.InputMismatchException;

class Number {
    private double value;
    Number(double n) {
        value = n;
    }
    double valueOf() {
        return value;
    }
}

class ArithmeticOperations {
    static Number add(Number a, Number b) {
        return new Number(a.valueOf() + b.valueOf());
    }
}

class AddTwoNumbers {
    static void process(double a, double b) {
        Number n1 = new Number(a), n2 = new Number(b);
        System.out.println(n1.valueOf() + " + " + n2.valueOf() + " = " +
            ArithmeticOperations.add(n1, n2).valueOf());
    }
    public static void main(String args[]) {
        try {
            if (args.length != 2) {
                System.err.println("Usage: AddTwoNumbersCLI first-number second-number");
            } else {
                System.out.println("Taking input from CLI arguments:");
                var v1 = Double.parseDouble(args[0]);
                var v2 = Double.parseDouble(args[1]);
                process(v1, v2);
            }
            double v1, v2;
            System.out.println("Taking input using java.util.Scanner:");
            var sc = new Scanner(System.in);
            System.out.print("Enter first number: ");
            v1 = sc.nextDouble();
            System.out.print("Enter second number: ");
            v2 = sc.nextDouble();
            process(v1, v2);
            System.out.println("Taking input using java.io.BufferedReader:");
            var r = new BufferedReader(new InputStreamReader(System.in));
            System.out.print("Enter first number: ");
            v1 = Double.parseDouble(r.readLine());
            System.out.print("Enter second number: ");
            v2 = Double.parseDouble(r.readLine());
            process(v1, v2);
        } catch (IOException e) {
            System.err.println("I/O error occured while reading input.");
        } catch (InputMismatchException e) {
            System.err.println("Invalid numbers");
        } catch (NumberFormatException e) {
            System.err.println("Invalid numbers");
        }
    }
}