Blog: Andrew's Java Blog for Beginners


200 blogs updated: 28 min. ago
How to Display an Image in a Java Applet
I created a series of images of the numbers 1 through 9 by typing them in a Word document in a suitable font. Then I copied them from there ...
12
22-07-2015 16:52:00 Andrew's Java Blog for Beginners Beginners
Java Program to Find Palindromes
A palindrome is a number which has the same value whether you read its digits forwards or backwards e.g. 8, 66, 525 etc. The program below s...
-39
15-02-2015 19:16:00 Andrew's Java Blog for Beginners Beginners
Project Euler Problem 1
If you are starting to get to grips with Java and would like to use it to solve a mathematical problem, go to Project Euler I joined recentl...
6
14-02-2015 19:54:00 Andrew's Java Blog for Beginners Beginners
Java "this" Prefix
If you have a constructor with parameters, you might want to use the same names for the variables in the class as you use for the parameters...
11
07-02-2015 21:12:00 Andrew's Java Blog for Beginners Beginners
Overloaded Java Constructors
The example below shows a class with an overloaded constructor:Java > cat Rectangle.javaclass Rectangle  {  double width; ...
8
04-02-2015 20:43:00 Andrew's Java Blog for Beginners Beginners
Java Constructors
If you have a class called, for example, Rectangle, you can add a method to it with the same name as the class. This method must have no ret...
6
04-02-2015 07:47:00 Andrew's Java Blog for Beginners Beginners
More About the Java Return Statement
The return statement does not have to pass a value back at all. It can just be used to return control to the calling program. Once a return ...
6
31-01-2015 17:52:00 Andrew's Java Blog for Beginners Beginners
How to Return Values From a Java Method
This example is based on an earlier post but I have changed it to show how a method can return a value. The first part creates a class calle...
8
29-01-2015 20:27:00 Andrew's Java Blog for Beginners Beginners
Java Method Overloading
At this stage, I don’t know why you would want to do this, but Java allows method overloading. This means that you can have two or more meth...
4
27-01-2015 20:40:00 Andrew's Java Blog for Beginners Beginners
Primitive Data Types are Passed to Methods by Value in Java
I created a class called my_class with a method called times_two. The method accepts an integer and multiplies it by 2: Java > cat my_class....
6
26-01-2015 21:26:00 Andrew's Java Blog for Beginners Beginners

© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.