Programming

Using The Date Command In PHP

Fadıl

Make your site look like you actually update it!
In php create a script that receives the date current date!  So people might actually think you update it.  Well, only in some accessions does that really work, but you never know.
Lets get to work…

(string format [, int timestamp])
EXAMPLE

The output of the script should produce the following…
Mon,December,18,2019
The following characters are recognized in the format string, so you can customize your time

Introduction to Java : Java Classes part-2

Fadıl

Operator Overloading

Another cool feature of Java is that methods in Java can easily be overloaded such that the same method name can be used for several different implementations of the same action. Remember our previous example of printNumber(), printLetter(), printImage()?

The only requirement for overloading is that each version of the method takes a different set of parameters as arguments (sometimes, we say that it has a “different signature”) such as in the following example:

Introduction to Java : Java Classes part-1

Fadıl

Classes

OK, so now that we understand the most basic Java syntax it is time to learn how object-oriented design is implemented in Java.

The essential unit of article introduction in Java is the class. The class is often described as a blueprint for an object. It enables a software engineer to characterize the majority of the properties and techniques that inside characterize an article, the majority of the API strategies that remotely characterize an item, and the majority of the sentence structure vital for taking care of embodiment, legacy and polymorphism.

Introduction to Java : Data Types and Operators Part-4

Fadıl

Operators

Java also provides several operators that you can use to manipulate your variables.

Mathematical Operators

As in all languages, Java allows you to perform math functions. The following table outlines the available functions:

OperatorDescriptionExample
+Performs additionint x = 1; int y = 2; int z = x + y // z = 3
–Performs subtractionint x = 2; int y = 1; int z = x – y // z = 1
\ *Performs multiplicationint x = 2; int y = 2; int z = x * y // z = 4
/Performs divisionint x = 4; int y = 2; int z = x / y // z = 2
%Gets the remainder (modulus)int x = 6; int y = 4; int z = x % y // z = 2

One thing to remember about mathematics in Java is that since variables are typed, you should be careful to match types or expect automatic casting! In other words, Java will return the result in a type that fits in the result regardless of what was used in the equation.

Introduction to Java : Data Types and Operators Part-3

Fadıl

Strings

As you may have noticed, in Java, there is no variable type called string. However, although Java does not have a built-in String type, it does provide you will a predefined class called String that you can use instead.

We’ll talk more about classes and using them in later sections. However, it would be nice to at least introduce the String class here so we can use it in the meantime.