Tag: How to
Java Program to display "Hello, World!"
Problem Write a program in Java to display “Hello, World!” on the screen. Java Program to display “Hello, World!” in Console Window. This is a simple Java program that displays “Hello, World!” on the console window. Output Hello, World!
How to Refresh the Page using jQuery?
Below is a sample sourecode snippet that demonstrates how to reload the page using jQuery. How to Refresh the Page using jQuery?
How to Perform Inner Join using LINQ in C# ?
Are you looking for the syntax on how to perform inner join using LINQ in C# ? . Below is a sample code snippet that demonstrates how to do it. How to Perform Inner Join using LINQ in C# ? Assume that the 2 objects that needs to be joined are Employee and EmployeeLeave as shown below. The employees and the leaves list contains the…
How to Declare and Define an Long data type variable in F# ?
How to Declare and Define an Long data type variable in F# ?
C Program to display half-pyramid using alphabets
Problem Write a program in C to print half-pyramid using alphabets as shown below.The program should take the number of rows as input. A B B C C C D D D D How to create and display half-pyramid pattern in C using alphabets ? Output Abundantcode.com Coding samples Enter the limit : 4 A BB CCC DDDD
Verify if the variable is a non-empty string in JavaScript
If you want to test if a variable that is defined is a non-empty string in JavaScript , you can use the typeof keyword to find if the type is a sring as well as check for the length of the string as shown below. How to verify if the variable is a non-empty string in JavaScript ? This will cause the else part to…
C Program to find GCD of two numbers
Problem Write a program in C to find the GCD of two numbers. How to find the GCD of two numbers in C ? GCD of two numbers refers to the largest integer value that can exactly divide both the number where the remainder is zero. Here’s a program in C demonstrating this. Output Abundantcode.com Coding Sample Enter first Number: 24 Enter second Number: 18 …
How to animate page navigation in Windows Phone 8?
In Windows Phone 8, the developers generally use the NavigationService.Navigate method to navigate from one page to another. By default, this does not include any kind of animation or transition when navigating. How to animate page navigation in Windows Phone 8? To animate page navigation in windows phone 8, you should download the Windows Phone Toolkit which is available for download from phone.codeplex.com The Windows…
Json.NET & Oxygene – How to Serialize a Collection?
Do you want to serialize an collection in your Remobjects Oxygene.NET application?. Json.NET supports this functionality with ease. The Collection can be an Array , Dictionary or List. You need to simply pass collection to the JsonConvert.SerializeObject static method which would serialize the collection and return you the Json string. How to Serialize a Collection in Oxygene.NET using Json.NET library ? For example , assume…
How to Add a Column with Default Value to Existing Table in SQL Server ?
Looking to add a column with default value to an existing table in SQL Server ? Below is an example and sample Data Definition Language Query for achieving the same. How to Add a Column with Default Value to Existing Table in SQL Server ? Assume that the table name is “ACEmployee” which already exists and you want to add a new column called “Status”…
How to Search for an App in Windows Phone Store using URI Scheme from WP8 App?
Below is a sample code snippet demonstrating Search for an App in Windows Phone Store using URI Scheme from WP8 App How to Search for an App in Windows Phone Store using URI Scheme from WP8 App?
How to Add item to the beginning of List in C# ?
If you want to add or insert an item to the beginning of the List in C# , you can use the Insert method defined in the collection as shown below. How to Add item to the beginning of List in C# ? using System; using System.Collections.Generic; using System.Linq; namespace ACCode { class Program { static void Main(string[] args) { …