The input type of EditText in Android can be restricted. We can set it to input numbers only. There are the following types of numbers that we can set the EditText to input Unsigned Integer Signed Integer Unsigned Decimal Signed Decimal We will learn how to do this using XML and programmatically using java code. … Read more Set EditText to input Numbers only
In this post you are going to learn how to upload a NetBeans project to GitHub. This project can be in any language Java or python or any other programming language that you can use in NetBeans IDE. Requirements A github account A project opened in Netbeans IDE An active internet connection Procedure Create a … Read more How to upload a Netbeans project to Github?
In this article, I am going to tell you how you can install Netbeans along with jdk for Java programming on Ubuntu. I also have a video on youtube about this which you can watch here. If you want to install on Windows instead, refer here. Let’s begin with the procedure: Procedure 1. Visit the … Read more Install Netbeans for Java on Ubuntu
You do not have a PC or laptop but still have the passion to code? No problem, you can start coding on your android phone. 1. Download the sololearn app from play store: 2. After installing the app, create an account or log in to your existing account. 3. Click on the codes tab. 4. … Read more How to code java on Android phone?
Can a static method access non static property in java? The simple answer is “No”. But there is an indirect method to do this. Consider the following code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /** * @author Hafiz Muhammad Umer */ public class … Read more How can a static method access non-static property in java