<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://awerner.myhome-server.de/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://awerner.myhome-server.de/feed.php">
        <title>Axel Werner&#039;s OPEN SOURCE Knowledge Base - it-artikel:java</title>
        <description></description>
        <link>https://awerner.myhome-server.de/</link>
        <image rdf:resource="https://awerner.myhome-server.de/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-19T14:49:02+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:a-solution-on-assignment-2-problem-3&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:cs106a-bouncingball-sample-code-phenomenon-ball-bounces-forever&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:demo-assignment-operators-which-way-around&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:learning-java-dowhiledemo_wargames_logindemo&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:minimales-java-konsolen-programm-und-wie-man-es-von-der-kommandozeile-startet&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-first-real-java-project-flashysquare-v.1.0&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-2&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-3&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-4&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-1&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-2&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-4&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-5&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-6&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-cs106a-section-20-problem-3-random-circles&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-cs106a-section-20-problem-4-drawing-lines&amp;rev=1661949019&amp;do=diff"/>
                <rdf:li rdf:resource="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-section1-cleaning-punchcards&amp;rev=1661949019&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://awerner.myhome-server.de/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Axel Werner's OPEN SOURCE Knowledge Base</title>
        <link>https://awerner.myhome-server.de/</link>
        <url>https://awerner.myhome-server.de/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:a-solution-on-assignment-2-problem-3&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>A Solution on Assignment 2 - Problem 3</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:a-solution-on-assignment-2-problem-3&amp;rev=1661949019&amp;do=diff</link>
        <description>A Solution on Assignment 2 - Problem 3

This is “a” Solution of Assignment 2 - Problem 3 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 

In fact, i cant realy tell anymore if I wrote this code or if i found it somewhere on the internet :). It looks pretty much like programm code i usualy make. But will not claim that this is MY Code. Just a Code that solves the Problem as requested for example purposes.</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:cs106a-bouncingball-sample-code-phenomenon-ball-bounces-forever&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CS106A BouncingBall Sample Code Phenomenon - Ball bounces forever?</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:cs106a-bouncingball-sample-code-phenomenon-ball-bounces-forever&amp;rev=1661949019&amp;do=diff</link>
        <description>CS106A BouncingBall Sample Code Phenomenon - Ball bounces forever?

This is the “BouncingBall” Sample Code for Computer Science Course CS106A of Prof. Mehran Sahami by the STANFORD University. 

Testing the Code on my computer with some changes at the parameters (class vars) turned out to show some STRANGE PHENOMENON. The ball seems not to come to rest. In fact, at the end you can easily see that it sometimes</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:demo-assignment-operators-which-way-around&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Demo - assignment operators which way around?</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:demo-assignment-operators-which-way-around&amp;rev=1661949019&amp;do=diff</link>
        <description>Demo - assignment operators which way around?

I found an interesting Question on one YouTube Video Tutorials and thought about testing it out myself and make a demo to it.

The Original Video was: &lt;http://www.youtube.com/watch?annotation_id=annotation_974871&amp;v=TL7tdNp0raE&amp;feature=iv&gt;

Question was:


what is the difference between c+=b and c=+b</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:learning-java-dowhiledemo_wargames_logindemo&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Learning Java - DoWhileDemo_WarGames_LoginDemo</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:learning-java-dowhiledemo_wargames_logindemo&amp;rev=1661949019&amp;do=diff</link>
        <description>Learning Java - DoWhileDemo_WarGames_LoginDemo

Just some little code demonstrating a do_while loop in java and some simple graphical userinterface prompting for input. Inspired by my favorite Hacker Movie of all times - “WarGames”.


import javax.swing.JOptionPane;


public class DoWhileDemo_WarGames_Login {
	public static void main(String[] args) {
		String command;
		boolean isWrongCommand;
		int errorCounter=0;
		do{
			command = JOptionPane.showInputDialog(&quot;LOGIN: &quot;);
			if(command.equals(&quot;…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:minimales-java-konsolen-programm-und-wie-man-es-von-der-kommandozeile-startet&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Minimales Java Konsolen Programm und wie man es von der Kommandozeile startet</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:minimales-java-konsolen-programm-und-wie-man-es-von-der-kommandozeile-startet&amp;rev=1661949019&amp;do=diff</link>
        <description>Minimales Java Konsolen Programm und wie man es von der Kommandozeile startet

Ein Java Programm ist innerhalb einer IDE (Programmierumgebung) ist schnell geschrieben und ausgeführt. Aber oft sieht man nicht was dabei eigentlich tatsächlich passiert. Spätestens wenn man dann sein Programm mal gerne selbst auf der Kommandozeile (CLI) ausführen möchte fangen die Probleme an.</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-first-real-java-project-flashysquare-v.1.0&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My first real Java project - flashySquare V.1.0</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-first-real-java-project-flashysquare-v.1.0&amp;rev=1661949019&amp;do=diff</link>
        <description>My first real Java project - flashySquare V.1.0

This was my first self initiated Java Project from the scratch for training purposes. It requires the acm library which you can download from &lt;http://jtf.acm.org/&gt; . It shows a simple rectangle and changes (fades) it from one color to another random color. Just like you might know it from some Microcontroller RGB LED Projects.</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-2&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 1 - Problem 2</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-2&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 1 - Problem 2

This is my Solution of Assignment 1 - Problem 2 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 



/*
 * File: StoneMasonKarel.java
 * --------------------------
 * The StoneMasonKarel subclass as it appears here does nothing.
 * When you finish writing it, it should solve the &quot;repair the quad&quot;
 * problem from Assignment 1.  In addition to editing the program,
 * you should be sure to edit this comment so that i…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-3&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 1 - Problem 3</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-3&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 1 - Problem 3

This is my Solution of Assignment 1 - Problem 3 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: CheckerboardKarel_v2.java
 * ----------------------------
 * When you finish writing it, the CheckerboardKarel class should draw
 * a checkerboard using beepers, as described in Assignment 1.  You
 * should make sure that your program works for all of the sample
 * worlds supplied in the starter folder.
…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-4&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 1 - Problem 4</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-1-problem-4&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 1 - Problem 4

This is my Solution of Assignment 1 - Problem 4 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: MidpointFindingKarel.java
 * -------------------------------
 * When you finish writing it, the MidpointFindingKarel class should
 * leave a beeper on the corner closest to the center of 1st Street
 * (or either of the two central corners if 1st Street has an even
 * number of corners).  Karel can put do…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-1&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 2 - Problem 1</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-1&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 2 - Problem 1

This is my Solution of Assignment 2 - Problem 1 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: Pyramid.java
 * Name: 
 * Section Leader: 
 * ------------------
 * This file is the starter file for the Pyramid problem.
 * It includes definitions of the constants that match the
 * sample run in the assignment, but you should make sure
 * that changing these values causes the generated display
 * to …</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-2&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 2 - Problem 2</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-2&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 2 - Problem 2

This is my Solution of Assignment 2 - Problem 2 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: Target.java
 * Name: 
 * Section Leader: 
 * -----------------
 * This file is the starter file for the Target problem.
 * Assignment 2 , Problem 2
 */

import acm.graphics.*;
import acm.program.*;
import java.awt.*;

import javax.swing.plaf.synth.ColorType;

public class Target extends GraphicsProgram {…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-4&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 2 - Problem 4</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-4&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 2 - Problem 4

This is my Solution of Assignment 2 - Problem 4 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: PythagoreanTheorem.java
 * Name: Axel Werner
 * Section Leader: 
 * -----------------------------
 * This file is the starter file for the PythagoreanTheorem problem.
 */

import acm.program.*;

public class PythagoreanTheorem extends ConsoleProgram {
	public void run() {
		println(&quot;PythagoreanTheorem : …</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-5&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 2 - Problem 5</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-5&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 2 - Problem 5

This is my Solution of Assignment 2 - Problem 5 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: FindRange.java
 * Name: Axel Werner
 * Section Leader: 
 * --------------------
 * This file is the starter file for the FindRange problem.
 */

import acm.program.*;

public class FindRange extends ConsoleProgram {

	
	/**
	 * Main Program to requests a list of integers from the user
	 * to determine an…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-6&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Assignment 2 - Problem 6</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-assignment-2-problem-6&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Assignment 2 - Problem 6

This is my Solution of Assignment 2 - Problem 6 from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: Hailstone.java
 * Name: Axel Werner
 * Section Leader: 
 * --------------------
 * This file is the starter file for the Hailstone problem.
 */

import acm.program.*;

/**
 * Class to ask User for a integer start number to 
 * calculate Hailstone Numbers sequence.
 * @author Axel Werner
 */
public class …</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-cs106a-section-20-problem-3-random-circles&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on CS106A - Section 20 - Problem 3 - Random Circles</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-cs106a-section-20-problem-3-random-circles&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on CS106A - Section 20 - Problem 3 - Random Circles

This is my Solution on CS106A - Section 20 - Problem 3 - Random Circles from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 

Question: On some runs of this program you might not see ten circles. Why?

My Answer: Since there is no special controlling on where to place new circles on the canvas it is possible that it puts a new larger circle on top of an older smaller circle, covering the older…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-cs106a-section-20-problem-4-drawing-lines&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on CS106A - Section 20 - Problem 4 - Drawing Lines</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-cs106a-section-20-problem-4-drawing-lines&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on CS106A - Section 20 - Problem 4 - Drawing Lines

This is my Solution on CS106A - Section 20 - Problem 4 - Drawing Lines from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 

My Code:


/*
 * File: DrawLines.java
 * -------------------
 * Name: Axel Werner [mail@awerner.myhome-server.de]
 * Section Leader:
 * 
 * CS106A - Section 20 - Problem 4 - Draw Lines
 * 
 * Write a GraphicsProgram that allows the user to 
 * draw lines on the canvas. Pr…</description>
    </item>
    <item rdf:about="https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-section1-cleaning-punchcards&amp;rev=1661949019&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-08-31T12:30:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>My Solution on Section1 - Cleaning PunchCards</title>
        <link>https://awerner.myhome-server.de/doku.php?id=it-artikel:java:my-solution-on-section1-cleaning-punchcards&amp;rev=1661949019&amp;do=diff</link>
        <description>My Solution on Section1 - Cleaning PunchCards

This is my Solution of “Section1 - Cleaning PunchCards” from the Computer Science Course CS106A of Prof. Mehran Sahami at the STANFORD University. 


/*
 * File: Section1.java
 * --------------------------------
 * Karel checks a punch card for half punched holes and cleans
 * those up. holes where the middle thingy is still existend
 * are considered as valid. 
 */
import stanford.karel.*;

public class Section1 extends SuperKarel {
	/**
	 * Specif…</description>
    </item>
</rdf:RDF>
