Abundant Code

  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • F#
  • JavaScript
  • ASP.NET
  • C
  • Java
  • SQL Server
  • Assembly Lang
Home ยป Java

How to hide virtual keyboard in android using Java?

May 6, 2016 by AbundantCode Leave a Comment

There are times when you want to hide the virtual keyboard in android. You can easily do that using the InputMethodManager. How to hide virtual keyboard in android using Java ? Just call the hideSoftInputFromWindow method of the InputMethodManager class by passing the token of the current window that contains the focussed view. Below is […]

Filed Under: Android Tagged With: android, How to, Java, tips, tricks

Java – How to calculate of Power of a BigInteger Number ?

March 14, 2016 by AbundantCode Leave a Comment

Problem Statement You need to calculate the power of a number of type BigInteger in Java. Solution Use the instance method “pow” of the type BigInteger by passing the exponent which will return the power as shown below. The output of the above program is 26665751846889541009

Filed Under: Java Tagged With: guide, How to, Java, tutorial

Java – How to use Packages to organize code ?

March 14, 2016 by AbundantCode Leave a Comment

Problem Statement You need to use packages in java to organize your code. Solution Your Java program might the following Classes Interfaces Enums Other types There are times when your program might grow larger including th number of java classes used. You might want to organize these source files to that it is easier to […]

Filed Under: Java Tagged With: guide, How to, Java, tutorial

Java – How to document your code ?

March 14, 2016 by AbundantCode Leave a Comment

Problem Statement You need to document your java classes so that it helps in maintenance. Solution Use Javadoc and place comments before any method , field or class to document. Just enter /** to start writing the comments using javadoc. The subsequent lines needs to begin with * and end the comment section with */ […]

Filed Under: Java Tagged With: guide, How to, Java, tutorial

Java – How to accept input from Keyboard ?

March 13, 2016 by AbundantCode Leave a Comment

Problem Statement You need to accpet user input from the keyboard from your java program and display it in the command line. Solution Use the BufferedReader and InputStreamReader defined in the java.io package to read the input data from keyboard and store it in a variable. The output of the above program is Enter data […]

Filed Under: Java Tagged With: guide, How to, Java, tutorials

Java – How to setup a Development Environment ?

March 10, 2016 by AbundantCode Leave a Comment

Problem Statement You need to install java and start developing your first program. Additionally , you also need to download , install and use an IDE (Integrated Development Environment) for development. Solution You need to install Java Development Kit (JDK) 8 which provides the necessary compiler to compile and run your Java programs. Additionally , […]

Filed Under: Java Tagged With: guide, How to, Java, tutorial

Java – How to convert a bool or string value to Boolean in Java ?

March 10, 2016 by AbundantCode Leave a Comment

Problem Statement You need to convert a boolean value of string value to Boolean type in your java program. Solution Use the Boolean class’s constructor and pass the corresponsing parameter to change it. Below is the sample code snippet demonstrating how to do it. The output of the above program is Abundantcode.com Java Tutorials false […]

Filed Under: Java Tagged With: guide, How to, Java, tutorial

Java – How to create BigDecimal from long datatype value ?

March 10, 2016 by AbundantCode Leave a Comment

Problem Statement You need to create BigDecimal values from long type value in your Java program. Solution Use BigDecimal.valueOf method to create BigDecimal from the long value.

Filed Under: Java Tagged With: guide, Java, tutorial

Java – How to create BigDecimal from string value ?

March 10, 2016 by AbundantCode Leave a Comment

Problem Statement You want to create a BigDecimal value from a string type in Java. Solution Use the BigDecimal class and pass the string value in the constructor to create the BigDecimal value as shown below. The output of the above program is Abundantcode.com Java Tutorials 198654586.297292792

Filed Under: Java Tagged With: guide, How to, Java, tutorials

Java – How to convert String to Double in Java ?

March 10, 2016 by AbundantCode Leave a Comment

Problem Statement You want to convert a string value to double in Java. Solution You can use one of the three approaches to convert a string to double in Java. 1. Assigning the string to the constructor of the Double class 2. Using Double.valueOf 3. Using Double.parseDouble The output of the above program is Abundantcode.com […]

Filed Under: Java Tagged With: guide, How to, Java, tutorials

  • 1
  • 2
  • 3
  • …
  • 7
  • Next Page »
RSS
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval

Categories

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML

Blog Stats

  • 8,729,452 hits

Archives

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • C Program to display half-pyramid using alphabets
  • How to Extract number from a string using C# ?
  • Json.NET & VB.NET - How to Deserialize an Object ?
  • System Software - SIC/XE Program to clear 20 byte string to empty
  • How to Check if Integer is a multiple of a number in Java?
  • Tools to Convert Java to C# Source Code
  • How to Allow only numeric input in a Textbox in WPF ?

Categories

  • Android
  • Angular 2
  • ASP.NET
  • Assembly Language
  • C
  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • Excel
  • F#
  • HTML
  • Interview Questions
  • Java
  • JavaScript
  • jQuery
  • Microsoft Office
  • MySQL
  • NETWORK
  • News
  • PHP
  • popular
  • PowerShell
  • Python
  • Ruby
  • SharePoint
  • SQL Server
  • SQL Server
  • Unix
  • VB.NET
  • Visual Studio
  • WebAPI
  • Windows
  • Windows Azure
  • Windows Forms
  • XAML

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • C Program to display half-pyramid using alphabets
  • How to Extract number from a string using C# ?
  • Json.NET & VB.NET - How to Deserialize an Object ?
  • System Software - SIC/XE Program to clear 20 byte string to empty
  • How to Check if Integer is a multiple of a number in Java?
  • Tools to Convert Java to C# Source Code
  • How to Allow only numeric input in a Textbox in WPF ?

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval
  • Python Program to Check Prime Number
  • Python Program to Find the Largest Value Among Three Numbers
  • Python Program to Check If a Given Year is Leap Year
  • Python Program to Check if a Number is Odd or Even
  • Python Program to Check if a Number is Positive, Negative or Zero

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML