Monday, 12 March 2012

Head-First core Java-2nd Edition Download


Learning a complex new language is no easy task especially when it s an object-oriented computer programming language like Java. You might think the problem is your brain. It seems to have a mind of its own, a mind that doesn't always want to take in the dry, technical stuff you're forced to study. 
Head-First core Java-2nd Edition Download
The fact is your brain craves novelty. It's constantly searching, scanning, waiting for something unusual to happen. After all, that's the way it was built to help you stay alive. It takes all the routine, ordinary, dull stuff and filters it to the background so it won't interfere with your brain's real work--recording things that matter. How does your brain know what matters? It's like the creators of the Head First approach say, suppose you're out for a hike and a tiger jumps in front of you, what happens in your brain? Neurons fire. Emotions crank up. Chemicals surge. 
That's how your brain knows.

And that's how your brain will learn Java. Head First Java combines puzzles, strong visuals, mysteries, and soul-searching interviews with famous Java objects to engage you in many different ways. It's fast, it's fun, and it's effective. And, despite its playful appearance, Head First Java is serious stuff: a complete introduction toobject-oriented programming and Java. You'll learn everything from the fundamentals to advanced topics, including threads, network sockets, and distributed programming with RMI. And the new. second edition focuses on Java 5.0, the latest version of the Java language and development platform. Because Java 5.0 is a major update to the platform, with deep, code-level changes, even more careful study and implementation is required. So learning the Head First way is more important than ever. 

If you've read a Head First book, you know what to expect--a visually rich format designed for the way your brain works. If you haven't, you're in for a treat. You'll see why people say it's unlike any other Java book you've ever read.

By exploiting how your brain works, Head First Java compresses the time it takes to learn and retain--complex information. Its unique approach not only shows you what you need to know about Java syntax, it teaches you to think like a Java programmer. If you want to be bored, buy some other book. But if you want to understand Java, this book's for you. 


Sunday, 11 March 2012

Sun Certified Programmer & Developer for Java 2 Study Guide ebook Download



The Best Fully Integrated Study System Available--Written by the Lead Developers of Exam 310-065


With hundreds of practice questions and hands-on exercises, SCJP Sun Certified Programmer for Java 6 Study Guide covers what you need to know--and shows you how to prepare--for this challenging exam.
  • 100% complete coverage of all official objectives for exam 310-065
  • Exam Objective Highlights in every chapter point out certification objectives to ensure you're focused on passing the exam
  • Exam Watch sections in every chapter highlight key exam topics covered
  • Simulated exam questions match the format, tone, topics, and difficulty of the real exam
Covers all SCJP exam topics, including:

Declarations and Access Control · Object Orientation · Assignments · Operators · Flow Control, Exceptions, and Assertions · Strings, I/O, Formatting, and Parsing · Generics and Collections · Inner Classes · Threads · Development.



SCWCD Exam Study Kit Second Edition eBook Download


Aimed at helping Java developers, Servlet/JSP developers, and J2EE developers pass the Sun Certified Web Component Developer Exam (SCWCD 310-081), this study guide covers all aspects of the Servlet and JSP technology that Sun has determined necessary. This new edition adds aspects of servlet/JSP development, such as the Expression language, and updated materials of servlets with a particular focus on using filters to make request processing more efficient. Covering the reliance on the JSP Standard Template Library (JSTL) and its core, this guide allows JSP developers will be able to simplify their development process and remove Java-based scriptlets and expressions from their code. All applications in this book are designed to run on Apache's latest development server, Tomcat 5.0, and instructions on how to install this new edition and execute servlets and JSPs are included.

Saturday, 10 March 2012

Palindrome program

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.java;

import java.util.Scanner;


public class Palindrom {

  public static void main(String args[])
    {
       String original, reverse="";
       Scanner in = new Scanner(System.in);
  
       System.out.println("Enter a string to check if it is a palindrome : ");
       original = in.nextLine();
  
       int length = original.length();
  
       for ( int i = length - 1 ; i >= 0 ; i-- )
          reverse = reverse + original.charAt(i);
  
       if (original.equals(reverse))
          System.out.println("Entered string is a palindrome.");
       else
          System.out.println("Entered string is not a palindrome.");

   
    }
}

/*Output:
Enter a string to check if it is a palindrome : 
 madam
 Entered string is a palindrome.
*/

Swap Numbers without using third variable

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.kota.java;

public class SwapNumbers {

  public static void main(String[] args) {
         
   int num1 = 10;
         int num2 = 20;
        
         System.out.println("Before Swapping");
         System.out.println("Value of num1 is :" + num1);
         System.out.println("Value of num2 is :" +num2);
        
         //add both the numbers and assign it to first
         num1 = num1 + num2;
         num2 = num1 - num2;
         num1 = num1 - num2;
        
         System.out.println("Before Swapping");
         System.out.println("Value of num1 is :" + num1);
         System.out.println("Value of num2 is :" +num2);
 }

 
}
/* Output :
Before Swapping
Value of num1 is :10
Value of num2 is :20
After Swapping
Value of num1 is :20
Value of num2 is :10*/

Swap Numbers using third variable

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.kota.java;

public class SwapNumbers {

  public static void main(String[] args) {
         
         int num1 = 10;
         int num2 = 20;
        
         System.out.println("Before Swapping");
         System.out.println("Value of num1 is :" + num1);
         System.out.println("Value of num2 is :" +num2);
        
         //swap the value
         swap(num1, num2);
 }

 private static void swap(int num1, int num2) {
        
         int temp = num1;
         num1 = num2;
         num2 = temp;
        
         System.out.println("After Swapping");
         System.out.println("Value of num1 is :" + num1);
         System.out.println("Value of num2 is :" +num2);
        
 }
}
/* Output :
Before Swapping
Value of num1 is :10
Value of num2 is :20
After Swapping
Value of num1 is :20
Value of num2 is :10*/

Program to generate Prime numbers.

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.kota.java;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class PrimeNumber {
 public static void main(String[] args) throws Exception{
    int i;
    BufferedReader bf = new BufferedReader(
    new InputStreamReader(System.in));
    System.out.println("Enter number:");
    int num = Integer.parseInt(bf.readLine());
    System.out.println("Prime number: ");
    for (i=1; i < num; i++ ){
    int j;
    for (j=2; j<i; j++){
    int n = i%j;
    if (n==0){
    break;
    }
    }
    if(i == j){
    System.out.print("  "+i);
    }
    }
    }

}
/*
 *  0utput :
 *  --------
 *  Enter number:100
 Prime number: 
  2  3  5  7  11  13  17  19  23  29  31  37  41  43  47  53  59  61  67  71  73  79  83  89  97
 * */
 
Related Posts Plugin for WordPress, Blogger...