Skip to content

Welcome to Ron Eaglin Online

The Collective Works of Dr Ron Eaglin

Menu
  • Organizations
  • Adventures
  • Courses
  • Projects
Menu

Java Programming

Java Programming for Beginners

I do not do a tremendous amount of Java programming, however I am proficient in the language and use it for applications where it is appropriate. I am also developing a Java for Beginners video series for programmers with a little bit of experience to help them come up to speed in full development in Java. These video series also take you through the complete cycle of development with small Java applications.

Java for Beginners 1 – This video goes through the process of starting a Java project and also getting output to the console. It covers the language and structure of the language and the environment.

[yourchannel video=”3jIJ9GWvfL8″]

 public static void main(String[] args) {
    System.out.println("My name is Ron Eaglin");
    int age = 54;
    System.out.println("May age is " + age);
    double money = 7;
    System.out.printf("I have $ %01.2f \n", money);
 }

Java for Beginners 2 – This video picks up and adds the ability to get input from the users, simple conditional statements, and looping with a while loop.

[yourchannel video=”-7RVv2FBAqI”]

 

public static void main(String[] args) {
  double sentinel = 0;
  int counter = 0;
  double userInput = 0;
  double total = 0;
  Scanner input = new Scanner(System.in);
  while (sentinel != -1){
     System.out.print("Please enter a number for the average (enter -1 when done)");
     userInput = input.nextDouble();
     if (userInput != -1) {
        total += userInput;
        counter++;
     }
     else {
        sentinel = -1;
     }
  }
  double average = total/counter;
  System.out.println("The average is: " + average);
}

 

 

 

© 2026 Welcome to Ron Eaglin Online | Powered by Minimalist Blog WordPress Theme