Find A Tutor

  • Tutoring Subject:
  • Zip:
  • Radius:
Have Tutors Contact Me


This page features blog posts about Java. Can’t find what you’re looking for? Let your favorite tutor know that the WyzAnt community could benefit from a blog post about Java!

Search by Subject

RSSSubscribe to this RSS feed

Java Articles

Getting a procedural programming student into object oriented programming

My first programming language was C. I had a lot of fun creating programs that used logic to do different things. None of the programs I wrote were too complicated, they all ran in the main() function, and they were never over 200 lines of code.

For the layman, the main( ) function is where all programs start. Anything outside of the main function must be imported before the code runs or called when the program is running. So all of my programs looked like this:

#import stuff
myfunction(){
x = 5
return x; }

void main() {
int x = 0;
while x < 5
x = myfunction(x);
y=x;
print y; }

So all this pseudo-program does is creates a function that adds five to whatever number it is given and returns it. Since my while loop checks to see if x is less than five, it should only loop once. Each time through the loop the value of x is given to y and the value of y is printed to the screen. So the output of this program should just be the number 5 since the next time it checks, x will not be less than five and it will skip to the next thing which is ending the program.

Procedural programming is good for things where the data and code can intermingle together, but later we will see what happens when you want to keep your data and your code separate...

Tutoring offer

My name is Corey and I am currently a college student who studies in Rutgers University majoring in Electrical Engineering. I would like to take advantage of some of my free time to help other people and free them from their struggles with academics. The subjects below are my best so feel free to e-mail me and I will get back to you as soon as possible to set up an schedule. Thank you for your support.

Ken In Houston Reaches 400 Hours of Tutoring

Ken B., known as "The Best Little Tutor In Texas", has just surpassed the 400 hour tutoring mark in Houston, Texas! What makes Ken so good and popular in Houston? It is because of his diverse background and of being able to do the following: mathematics, statistics, chemistry, physics, computers, and computer programming. He can help a student in many many different areas. Ken does both high school and college and does regular, honors, IB, PAP, AP, etc... All that is quite a talent. Ken says that the subject most tutored in the past several months is statistics, and the reason for that is that most teachers use the 'dump' method...they 'dump' a copious quantity of power point files onto the student but the teachers do not really teach how to 'do' the problems...he has seen the same trend with other subject areas, and this is most unfortunate for students taking the classes...so, if you need to get on top of your mathematics and science courses (except of biology), then Ken in Houston is the person to contact.