Getting Started

Posted in Uncategorized on November 11, 2011 by johnhd

It isn’t hard to get started programming in Java. First you need to download the Java compiler and libraries. Once you have those, it is feasible to write your programs in a text editor like notepad or wordpad. It is easiest to download whats called an Integrated Development Enviorment (IDE) like Eclipse or Netbeans. These programs are text editors with all the built in tools you need to write, compile, and run code. Some of my favorite tools are the built in debugging that underlines code with possible errors and the method suggestion tool. To download the latest Java IDE go to either the Eclipse or the Netbeans website and select the version you would like to download.



Posted in Java Instruction with tags , , , on November 10, 2011 by johnhd

Some programming languages are like essays. They are just instructions written top down. Java is an object oriented programming language and behaves differently.

In Java, instuctions are written in “bubbles” called methods. A method a set of instructions that can be called at anytime to perfrom a certain task. For example, if we had a robot that we wanted to instruct to bake a cake using Java, we would need to write a methods for all the processes involved in baking a cake. We would write a “pour” method, a “stir” method, a “bake” method, and a “checkIfDone” method. The “checkIfDone” method is one of the only methods listed that doesn’t need a parameter. Since it is the cake baking robot.

Java Data Types

Posted in Java Instruction with tags , on November 10, 2011 by johnhd

The first step to programming in Java is getting to know data types. Programs work with many different types of user input. The computer needs to know how to store the input and what functions can be used on that data. For example, a computer cannot multiply the word “cake” by the number two.  Also, data takes up space in memory and it is best to use as little memory as possible. Thats why in Java, even numbers have different types. When you create a variable to store user input or data created by the progam, you must tell the computer how to treat the data.

  • Strings

When you define a variable as a string, you are telling it that the data is text. It can be anything that you can possibly type in on the keyboard.

  • Integers
  • Booleans
  • Doubles
  • Floats
String text="My name is Juan."; 
int value=94; 
boolean bestBlogEver=true; 
double decimal=22.1;

Hello world!

Posted in Uncategorized on November 7, 2011 by johnhd

My name is Johnd Dunbar. I am a software developer at Curry Adkins in El Paso, Texas. Recently, my manager suggested that I familiarize myself with WordPress because that is the direction the company is headed for webdesign. As part of the learning process, I decided to keep a blog about Java.