Tuesday, May 26, 2009

Basic Q&A About Java Concepts & More

The writer of the linked piece poses questions which are answered about basic concepts needed by those programming in java. The terms import, class, object, static, void and more are discussed.


Here are also some links helpful to those leaning about Java:

http://www.cafeaulait.org/javatutorial.html

http://www.devx.com/Java

http://javaboutique.internet.com/

Labels:

Friday, May 22, 2009

Some Points About Java Classes

Some bullet points with information from the Sun Java tutorial site:

* Superclasses can contain an unlimted number of subclasses.
From: What is Inheritance
* A subclass can have only one superclass.
From: What is Inheritance

* Objects and methods are created within classes.
From: What is a class?
* A superclass can act as a blueprint within which objects are declared and initialized and then used by methods. The methods are named with an action word which begins with a small letter and is followed by one of the declared objects which starts with a capital letter. No space in between the words. When a class functions just like a blueprint it does not contain a main method.
From: What is a class?

Labels:

Thursday, May 14, 2009

Commentary on John: Chapter 2

A friend of mine named Walter told me that a group he was with was reading John: Chapter Two and writing responses to it. Chapter two of the Gospel of John can be separated into two parts. The first part describes the transformation of water to wine at the wedding feast in Cana. The second part describes the time Jesus cleared the temple of money changers. The New American Standard Bible (NASB) version of the Cana miracle:


John 2 Miracle at Cana
1 On the third day there was a wedding in Cana of Galilee, and the mother of Jesus was there;

2 and both Jesus and His disciples were invited to the wedding.

3 When the wine ran out, the mother of Jesus said to Him, "They have no wine."

4 And Jesus said to her, "Woman, what does that have to do with us? My hour has not yet come."

5 His mother said to the servants, "Whatever He says to you, do it."

6 Now there were six stone waterpots set there for the Jewish custom of purification, containing twenty or thirty gallons each.

7 Jesus said to them, "Fill the waterpots with water." So they filled them up to the brim.

8 And He said to them, "Draw some out now and take it to the headwaiter." So they took it to him.

9 When the headwaiter tasted the water which had become wine, and did not know where it came from (but the servants who had drawn the water knew), the headwaiter called the bridegroom,

10 and said to him, "Every man serves the good wine first, and when the people have drunk freely, then he serves the poorer wine; but you have kept the good wine until now."

11 This beginning of His signs Jesus did in Cana of Galilee, and manifested His glory, and His disciples believed in Him.

12 After this He went down to Capernaum, He and His mother and His brothers and His disciples; and they stayed there a few days.


My most recent reaction to this passage differs from the reaction I had when first hearing this as a child. As a child I thought Jesus was telling his mother he did not want to do something and that she reacted by exercising a parental option namely, indicating her wish that he do it anyway. That's how I interpreted Mary's comment "Whatever He says to you, do it."

We interpret what we read through the lens of our experiences and current level of understanding. As a child I identified with Jesus and saw him responding to his mother's desire. When viewing the statements of biblical personalities we have the perspective of hindsight. We know the outcome of a story and sometimes mistakenly analyze the thoughts and actions of people with that in mind. After all Jesus seemed to comply with his mother's wish that he do something about the bridegroom's predicament.

As an adult I realize that it was the wishes of his Father in heaven that were central concern of Jesus. Looking at Mary's statement again I can see that she said merely that the listener(s) comply with whatever it would be that Jesus said. Good, sound advice. In her mind that could have been a range of possibilities that included advice on how to proceed without further wine. But the point is she placed the responsibility for the decision in the hands of Jesus. She could not go wrong in so doing.

Here is the passage describing the temple incident:

First Passover--Cleansing the Temple

13 The Passover of the Jews was near, and Jesus went up to Jerusalem.

14 And He found in the temple those who were selling oxen and sheep and doves, and the money changers seated at their tables.

15 And He made a scourge of cords, and drove them all out of the temple, with the sheep and the oxen; and He poured out the coins of the money changers and overturned their tables;

16 and to those who were selling the doves He said, "Take these things away; stop making My Father's house a place of business."

17 His disciples remembered that it was written, "ZEAL FOR YOUR HOUSE WILL CONSUME ME."

18 The Jews then said to Him, "What sign do You show us as your authority for doing these things?"

19 Jesus answered them, "Destroy this temple, and in three days I will raise it up."

20 The Jews then said, "It took forty-six years to build this temple, and will You raise it up in three days?"

21 But He was speaking of the temple of His body.

22 So when He was raised from the dead, His disciples remembered that He said this; and they believed the Scripture and the word which Jesus had spoken.

23 Now when He was in Jerusalem at the Passover, during the feast, many believed in His name, observing His signs which He was doing.

24 But Jesus, on His part, was not entrusting Himself to them, for He knew all men,

25 and because He did not need anyone to testify concerning man, for He Himself knew what was in man.


A few points stand out. Those selling the animals had an inelastic market of consumers needing to spend to satisfy sacrificial obligations. Although it does not say so explicitly commentators have written that prices were excessive- price gauging in modern parlance. The sellers were focused on their monetary gains. But personal monetary gains coming at the expense of others, rather than to benefit others, is inherently sinful.

Jesus came to fulfill scriptural prophecies. Note the reference to zeal for your house. While on earth Jesus added to biblical prophecies. The one referring to his body as a temple was, of course, fulfilled by the resurrection.

Labels: