Skip to content
Dr James Froggatt
  • Website security (& ethical hacking)
  • Web programming services
  • Website development
  • Prices
  • Blog
  • Contact
  • Toggle website search
Menu Close
  • Website security (& ethical hacking)
  • Web programming services
  • Website development
  • Prices
  • Blog
  • Contact
  • Toggle website search

Java

Multi array table demo

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Arrays
  • Post comments:0 Comments

Outputs: First array 4 5 6 10 20 30 Second array 100 200 300 45 3 4 5 6 7 8

Continue ReadingMulti array table demo

Arrays in methods

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Arrays
  • Post comments:0 Comments

Passing arrays in methods Outputs: 7 9 11 13 We pass our array james to the changearray method which adds 5 to each element.

Continue ReadingArrays in methods

Enhancing a for loop with an array

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Loops
  • Post comments:0 Comments

This is a specialized way of looping through all the elements of an array to do something with each element. The program here declared, 'int count' is the type and…

Continue ReadingEnhancing a for loop with an array

Simple arrays

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Arrays
  • Post comments:0 Comments

Outputs: 3 Note: new use 'new' above because an array is actually an object Outputs: 4 (the index of arrays starts at zero) Creating an array table Outputs: Index Value…

Continue ReadingSimple arrays

Random number dice simulator

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Simple Programs
  • Post comments:0 Comments

This program imports the random class, makes an object of that class called dice, and use the dice object to get get random numbers between 1 and 6. Outputs: 6…

Continue ReadingRandom number dice simulator

Math Class methods

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Class Files
  • Post comments:0 Comments

Continue ReadingMath Class methods

DO WHILE loop

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Loops
  • Post comments:0 Comments

The do while condition executes the body at least once, it.... does this before the loop is first tested. Outputs: 0 1 2 3 4 5 6 7 8 9…

Continue ReadingDO WHILE loop

For loops

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Loops
  • Post comments:0 Comments

Displays: 1 2 3 4 5 6 7 8 9 Displays: 1 4 7

Continue ReadingFor loops

Simple program to average a bunch of numbers

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Simple Programs
  • Post comments:0 Comments

This is the output if number 1 to 10 are entered: 1 2 3 4 5 6 7 8 9 10 Average= 5

Continue ReadingSimple program to average a bunch of numbers

Conditional operators

  • Post author:admin
  • Post published:November 21, 2011
  • Post category:Conditional operators
  • Post comments:0 Comments

These are another way, more compact way of doing if else statements. The above logic means if there's more than 20 bananas do the first thing, else do the second…

Continue ReadingConditional operators
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Go to the next page

Search

Recent

  • Project Mysql Connection using Javascript April 6, 2025
  • Make grass than bends September 24, 2022
  • Making a png sprite map in InkScape (for later use in Javascript Game or any other game) September 24, 2022

Categories

  • AJAX
  • Android Development
    • Activities and Intents
    • Android Examples
    • Big Nerd Ranch Notes
    • Fragments
    • Program Anatomy
  • CSS
  • GIT
  • HTML
  • Inkscape
  • Installations
    • VBulletin5
    • Wordpress
    • XAMPP
  • Java
    • "this" keyword
    • Abstract Classes & Interfaces
    • Arrays
    • Class Files
      • Abstract classes & methods
      • Final
      • Public, private, this
      • Static
      • Time Class
    • Compostition
    • Conditional operators
    • Constructors
      • Basics
      • Overloading Constructors
    • Decision statements
    • Enumeration
    • Inheritance
    • Inner classes
    • Interfaces
    • Java GUI
    • Java I/O
    • Keywords
      • Static
      • Super
    • Loops
    • Math Operators
    • Methods
      • Implicit & Explicit Parameters
      • Overloading
      • Overriding
      • Static Methods
      • Substring()
      • toString
    • Object Reference Preservation
    • Objects
      • Basics
      • Examples
    • Reference Types vs Primitive Types
    • Simple Programs
    • Specific Concepts
    • Variables
      • Basic Variables
      • Static variables
      • Variable Scope
  • Javascript
    • NodeJS
  • Javascript HTML DOM
  • Metatrader
  • Miscellaneous
    • Cooking recipes
    • DIY E-liquids
    • Go Pro 2
    • Holidays
    • Oakham School
    • Out and about on Android
    • Survivors Manchester
    • Trading
    • Wordle
    • Wordpress Stuff
  • Notepad++
  • PHP Programming
    • PHP Objects
    • PHP security
  • PMF
  • Python and Neural Networks
    • Latex
    • Lists and Arrays
    • Manipulating CSV files
    • Neural Network Notation
    • Sigmoids and tan
  • React and Node.js
  • SQL & Databases
    • SQL Specifics
    • World Map Manipulation

Copyright James Froggatt 2017-2020