A Vector is a kind of Array List from Java. It can receive hundreds of values indefinitely and it will still know its current size; something that regulars Arrays don’t know. Here it is an easy to follow example, if you want to know how […]


0
Java Class

Java is a programming language that can be sometimes be tedious if you don’t have an idea on how to create parent-child classes. Here it is a very example to follow: class Plane { protected double size = 5; protected double weight; protected int age; […]


0
Java Class

This is a working basic code to create a new file called ‘test.txt’. You can see this code more clearly in my repl under the src folder. import java.util.Random; import java.io.*; public class TestData { //----------------------------------------------------------------- // Creates a file of test data that consists […]


0
Java Class

Actually no, the term of – on click event – is not right because usually said term is only used when handling JavaScript stuff. This time instead of saying on click event, we’re simply going to say – when X button is pressed – which […]


0
Java Class

Not long ago I learned how to use the Java classes that came by default with it when using the Java API. Now I was assigned to create my own class with its custom methods and what a best way to learn it than by […]


0
Back to Top