Posts

Showing posts from May, 2015

Git tutorials

To install git sudo apt-get update sudo apt-get git-core To check the version of git  git --version To setup Git configuration 1. Git initialize :-    git init 2. check for git status :-    git status 3. Add user name :    git config --global user.name "email@guidanz.com" 4. Add email id for user :-    git config --global user.email email@guidanz.com 6. Add git  repository :-    git remote add origin https://github.com/try-git/try_git.git 7. Clone repository :-    git clone  https://github.com/try-git/try_git.git Set proxy settings in git  git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080  git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080 Remove proxy  git config --global --unset http.proxy  git config --global --unset https.proxy Create a new project Assume that we have to create new project under...

Flames program

Today i tried to  write flames program in java. package com.flames.app; import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); System.out.println("Enter your name :"); String first = scanner.next(); System.out.println("Enter your partner name :"); String second = scanner.next(); System.out.println(first + second); int points = getPoints(first , second); String res= flames(points); char result=res.charAt(0); switch(result){ case 'f': System.out.println(second+" is ur Friend"); break; case 'l': System.out.println(second+" is ur Love"); break; case 'a': System.out.println(second+" is ur Affection"); break; case 'm': System.out.println("u r going to marry "+ second); break; case 'e': System.out.println(second + " is ur Ene...