Monday, 14 July 2014

Hi Guys!!     In this post you will learn how to control a sprite's movement in C# with Arrow Keys           Below  is the  Code for arrow controlled object motion. Its easier than it sounds check it out guys. 1: using System; 2: using System.Collections.Generic; 3: using System.ComponentModel; 4: using System.Data; 5: using System.Drawing; 6: using System.Linq;...

Saturday, 21 June 2014

Things You will Learn: Make tictactoe in Java/C# Deciding a winner in TicTacToe TicTacToe pseudo code Pseudo Code : Player selects a box i.e '1'  If that box is already filled with any player symbol gives an error and repeats the current iteration If its not filled already,that box is filled with the current player's symbol when the the number of filled boxes is greater than or equal to 5 the decidewinner method is called to check if we have a winner right now continues until all the boxes are filled. Here is the code : 1:...

Tuesday, 13 May 2014

Find out your Body Mass Index Here are the Screen Shots of the Application : This app is developed in C# programming language and the software used to develop is C# 2010 Express CLICK HERE to Download. Comment your Email Address below to get the code for this program. Like our facebook page to get the latest stuff!!! ...

Sunday, 11 May 2014

What You will Learn : What are Static/Class variables What are Instance Variables Scope of Static and Instance variables Difference b/w Static and Class variables Static Variables : Static variables are associated with all the objects of the class Declared in the class outside of any method or block They are assigned default values when created i.e 0 for integers They have the same state for all objects of the class No object is needed...
You will learn : Binary search Linear Search Where to use Linear Search Where to use Binary Search How Binary Search Works Linear Search : It used on unsorted List  It is very slow for large Lists Its easy to write code for Linear Search Should be only used if the list is a few elements long Code : 1: public class Search { 2: 3: public static void main(String args[]){ 4: int array[] = {1,5,9,11,25,90,122};...

Tuesday, 29 April 2014

Today You will learn : How to set environment variable for Java How to Run Java from Command Prompt How to Compile Java code from Command Prompt Before Starting You must check if  JDK is installed if not download install it from oracle's official website. Lets get Started : Click Advanced System Settings under Computer Properties Click Environment Variables Create a New one with the name path Go to the bin in the...

Monday, 14 April 2014

Things you will learn : What are Headers How to create Headers Why should i create Headers How to include header in your program What are Header files?   Header files are similar to the library files in Java. They are created once and can be used in any program in which they are included. Actually you define your functions in the header files to use them again and again without typing the whole code again. All you have to do is to include them in your program first. The most common header files in C/C++ is"conio.h" inside this header...

Tuesday, 8 April 2014

Today You will learn : How to use Inner Class to use Key Events and Mouse Events How to cancel key typed event in Java How make numeric JTextField How to limit the number of characters in JTextField consume() method of the KeyListener interface Character.isDigit() method and getKeyChar() method The main things here are the JTextField , KeyEvents , Inner Classes in Java and how to create numeric TextFields...

Thursday, 3 April 2014

What You are About to Learn? Array Reversing Java String.charAt(index) method String Reversing StringBuilder StringBuffer.reverse() method in Java Java String.toCharArray() method String Reversing Method # 1 :  public class StringReversing { public static void main(String args[]){ char temp; String s = new String("Hello"); System.out.println(s); char str[] = s.toCharArray(); int last = s.length() - 1;...

Tuesday, 1 April 2014

Why to make a TextBox numeric ?    Imagine the situation in which you are making a calculator app and if the user types chars except digits that may result in undesired output. A wise programmer will not let that happen and he will restrict the user to type only numbers so that the chance of user mistyping is eliminated.            Today i am going to tell you how to make numeric textbox and other useful stuff you can do with textbox     Here is the code : private void textBox1_KeyPress(object...

Saturday, 29 March 2014

You can launch your Java project by just double clicking the jar file of the project. For that you have create the jar file first. Don't worry you don't have to download additional tools for that purpose it can be done using Eclipse. If you don't have Eclipse you can download it for your platform HERE If you don't have JDK you can download it free for you OS HERE Here is the step by step method to create Executable Jars using Eclipse...

Monday, 24 March 2014

Java is extremely powerful and Easy Language. But don’t misunderstand its easy but powerful and popular language. It is a must learn programming language for you weather you want to develop web Applications or desktop Applications. It is also good for you if you are willing to develop for mobile phone. Java is Ideal choice for everyone. Lest's check  the reasons behind Java's success and why it is the first choice for every programmer in...

Saturday, 22 March 2014

The biggest problem a beginner faces is the problem of Logic Developing. Many of Beginners do not have too much creative thinking. Today i m going to share with you the techniques which i used to strengthen my logic in programming and  they helped me a Ton. Believe me you are going to love them. Know what you are doing 1 : Most of the beginners just want to make their code run rather then thinking of logic behind it. Trust me you are not going to learn anything if you continue doing this.The better way is to break your problems...

Thursday, 20 March 2014

 Have you ever thought about what if you could know the time taken by your code to run. That's what todays post is all about. Knowing the speed of your program or algorithm is very important. Because that's the only way to make it better and faster. Today i am going to show you how you can calculate the running time of your program.      For doing this you first need to include the header file "time.h". Then declare two variables...

Wednesday, 19 March 2014

To understand this first you need to know why do we create static methods and how do we call them learn about static methods at : Main method is declared static because static methods do not need any instance to get themselves called. Java is Object Oriented language so it is necessary to declare the  main method as static because their are some conditions in which we don’t want to create the object for example if we want to do simple programming...

Tuesday, 18 March 2014

Today i m going tell you how you can calculate your typing speed using Java code Here is the Code : import java.util.Scanner; public class TypingSpeedCalculator { int no_of_words=0; static int z; double minutes; double start,end; public int count_Words(){ int a=1; String b; Scanner s1 = new Scanner(System.in); System.out.println("Type some text : "); start = System.currentTimeMillis();...
Subscribe to RSS Feed Follow me on Twitter!