Wednesday, February 11, 2015

How About Some More??

So here is some more coding for ya. The beginning of coding is the most boring thing I can think of, but it is necessary. We are going to capitalize and lowercase San Francisco. And since I can't really think of anything for myself, I need to decide how many characters are in San Francisco. Oh and what is the first letter of San Francisco? I need to write code to decide this for me. Here is an example of how boring early computer science can be:

public class Strings
{
  public static void main(String[] args)
  {
    String message = "San Francisco";
    String upper = message.toUpperCase();
    String lower = message.toLowerCase();
    char letter = message.charAt(0);
    int stringSize = message.length();
   
    System.out.println(message);
    System.out.println(upper);
    System.out.println(lower);
    System.out.println(letter);
    System.out.println(stringSize);
  }
}

Here is the command prompt:
San Francisco
SAN FRANCISCO
san francisco
S
13

First Post

So here we go...again....

First post about my life trying to learn computer science. It has always been an interest of mine to learn cs. I graduated with a degree in political science and realized that a degree in that really didn't lead me to a job that would provide for, not only me, but for my girlfriend as well.

I made my first program for those who are just starting out. It is very simple. I used JGRASP to create this program. For some reason my text editor could not create the program I wanted...here it is:

I made my compiler run "I Love Tottenham." They are my favorite soccer team in the world. You need to make sure all the punctuation is correct. The compiler will yell at you if you didn't. I will go into more depth in programming later.

public class firstProgram
{
  public static void main(String[] args) //your framework
  {
    System.out.println("I Love Tottenham."); //this will be   displayed on the screen
  }
}