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

Variables

Static variable tips

  • Post author:admin
  • Post published:April 22, 2014
  • Post category:Static variables
  • Post comments:0 Comments

Make constants, like PI, static and public If static variables are not constants, keep them private if possible Static variables save space and are easy to use as they keep…

Continue ReadingStatic variable tips

Static variable code demo

  • Post author:admin
  • Post published:April 22, 2014
  • Post category:Static variables
  • Post comments:0 Comments

Output: 1 2 3 4 Static variables as demonstrated above are remembered between states, so when a new object is created, the static variable is remembered, so this allows us…

Continue ReadingStatic variable code demo

Variable Scope Part 2

  • Post author:admin
  • Post published:April 21, 2014
  • Post category:Variable Scope
  • Post comments:0 Comments

There are 3 main types of variables: Local Parameter Instance The scope of a variable is the part of the program where the variable can be accessed. It's good programming…

Continue ReadingVariable Scope Part 2

Variable Scope

  • Post author:admin
  • Post published:April 20, 2014
  • Post category:Variable Scope
  • Post comments:0 Comments

LOCAL VARIABLES & PARAMETER VARIABLES A local variable is a variable declared in the body of a method. A parameter variable(s) is/are declared in the method headers e.g. when the…

Continue ReadingVariable Scope

Basic use of variables

  • Post author:admin
  • Post published:November 20, 2011
  • Post category:Basic Variables/Variables
  • Post comments:0 Comments

Displays the text "I have 2.5 games."

Continue ReadingBasic use of variables

Search

Recent

  • 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
  • Setting up node JS September 21, 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