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

Methods

Substring()

  • Post author:admin
  • Post published:April 30, 2014
  • Post category:Substring()
  • Post comments:0 Comments

Outputs: -James- -Frazer-

Continue ReadingSubstring()

Method Overriding

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

A subclass method overrides its superclass method if it has the same name a parameter types as its superclass. Output: 4 sides You can notice the subclass and the superclass…

Continue ReadingMethod Overriding

Static methods in Java

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

Why static methods? Take two people (two objects below). The getName method will return the name of the first person, and the second person, but there's something different about calculateAge…

Continue ReadingStatic methods in Java

Implicit and Explicit Parameters

  • Post author:admin
  • Post published:April 21, 2014
  • Post category:Implicit & Explicit Parameters
  • Post comments:2 Comments

There are two types of methods in Java: Implicit Parameters & Explicit Parameters Explicit Parameters "int side" in the getArea method is an EXPLICIT parameter. Implicit Parameters str1 is a…

Continue ReadingImplicit and Explicit Parameters

Method Overloading

  • Post author:admin
  • Post published:April 20, 2014
  • Post category:Methods/Overloading
  • Post comments:0 Comments

When you give two or more methods the same name within the same class you are overloading the method name. Overloaded methods have something different in their parameter lists. Java…

Continue ReadingMethod Overloading

toString method

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

Any time that you need a string representation of an object, we use toString. Outputs: The contructor for this is 5/6/7 Since 'this' is used, in the system.out.printf statement, it…

Continue ReadingtoString method

Passing an unknown number of variables to a method

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

Sometimes you want to build a method and you don't know how many arguments it needs. For example, a method that averages a bunch of numbers. This example shows how…

Continue ReadingPassing an unknown number of variables to a method

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