Thursday, August 4, 2016

Notes Day 1 AIT


 Batch 2 feedback link for day 2

Day 1 Notes refer
Java overview
JVM details
Basic syntax
basic data types





Day2  example 2

Testarray.java


class Testarray{  
static void min(int arr[]){  
int min=arr[0];  
for(int i=1;i
 if(min>arr[i])  
  min=arr[i];  
  
System.out.println(min);  
}  
  
public static void main(String args[]){  
  
int a[]={33,3,4,5};  
min(a);//passing array to method  
  
}}  



Example 3
Following example demonstrates to convert an array into a collection Arrays.asList(name) method of Java Util class.

import java.util.*;
import java.io.*;

public class ArrayToCollection{
   public static void main(String args[]) 
   throws IOException{
      BufferedReader in = new BufferedReader
      (new InputStreamReader(System.in));
      System.out.println("How many elements 
      you want to add to the array: ");
      int n = Integer.parseInt(in.readLine());
      String[] name = new String[n];
      for(int i = 0; i < n; i++){
         name[i] = in.readLine();
      }
      List list = Arrays.asList(name); 
      System.out.println();
      for(String li: list){
         String str = li;
         System.out.print(str + " ");
      }
   }
}


Exception
Multithread 
Inheritance 

Program examples 1

package com.ait.mt;

/* @author Vipin_Nittoor
MultiThreadExample .java
 */

public class MultiThreadExample {
    public static void main(String[] args) throws InterruptedException {
        Printstar p= new Printstar();
        p.start();
     
     
        for (int i = 0; i < 20; i++) {
            System.out.println(" +");
            Thread.sleep(100);
        }
    }
}

/**********************/
/*   Printstar.java
 */
package com.ait.mt;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *           Printstar.java    
 * @author Vipin_Nittoor
 */
public class Printstar extends Thread {
    @Override
    public void run()
    {
        for (int i = 0; i < 20; i++) {
          System.out.println("*"); 
            try {
                this.sleep(100);
            } catch (InterruptedException ex) {
                Logger.getLogger(Printstar.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        
    }
}

Thursday, April 22, 2010

Girl's Diary VS boy's Diary

HER DIARY

=========

Day night, I thought he was acting
weird. We had made plans to meet at a
cafe to have some coffee. I was shopping with my friends
all day long, soIely thought he was upset at the fact that I
was a bit late,
but he made no comment.Conversation wasn't flowing so

I suggested that we go somewhere quiet so we could talk, he agreed but
he kept quiet and absent. I asked
him what was wrong - he said,

"Nothing."I asked him if it was my fault that he was upset. He said it had
nothing to do with me and not to worry.

On the way home I told him that I loved him, he simply smiled and kept
driving. I can't explain his behavior; I don't know why he didn't say, "I love u,too."
When we got home I felt as if I had lost him, as if he wanted nothing to do with me anymore.
He just sat there and watched TV.; he seemed distant and absent.Finally I
decided to go to bed. About 10 minutes later he came to bed. I decided
that I could not take it anymore,
so I decided to confront him with the situation but he had fallen asleep.

I started crying and cried until I too fell asleep.. I don't know what to
do. I'm almost sure that his thoughts are with someone else.

My life is gonna be a disaster.
_______________________________

HIS DIARY

==========

Today India lost the cricket match
against bangladesh..

DAMN
IT.


Simplicity of Men
Vs
Complexity of Women !!!

Java 2 Enterprise Edition..... An Introduction...

Java 2 Enterprise Edition..... An Introduction...

Sunday, March 21, 2010

Talk on MPLTC

Saturday, March 20, 2010

MVSIT Talk on MP landscape and challenges

check here for the tools
www.emu8086.com
Feel free to write comments on how you felt the talk at MVSIT .

Friday, March 19, 2010

Monday, March 8, 2010

Best eclipse tutorials

Hi just check out the link .

Monday, March 1, 2010

Friday, February 26, 2010

BHAGAVAN SRI SATHYA SAI BABA: Pure Love Unparalleled

Unprecedented is the word. Everything about Him is something that the world has never seen before. The Organisation bearing His name is the largest completely voluntary service organisation with at least a million members spread in almost every nation on the face of this earth. The mammoth institutions established by Him in the most needed areas of education, health and rural upliftment offer service of the highest grade at absolutely no cost to the beneficiaries, and that too in an ambience that is holier and holistic than humanity’s revered places of worship. Men and women, young and old, children and adults, Christians and Buddhists, Muslims and Hindus, Jews and Pharisees, Chinese and Russians, Americans and Africans, Aborigines and Europeans – literally everyone in which ever corner of the globe they may be, can feel His Presence; He guides, protects, counsels, comforts, cares, cures, and then elevates.

Monday, February 15, 2010

sessional 1QP and AK

https://docs.google.com/Doc?docid=0Af2zxSHjd-bOZGN6M2s0NGtfNDQ2ZjVqNjNkZ2M&hl=en

Chk for QP and Answer Key Department of Computer Science & Engineering > CSE210 > Documents and Links

Sunday, February 7, 2010

Sample Question 1

https://docs.google.com/fileview?id=0B_2zxSHjd-bOYjFlMzMyMGYtNWUyZi00YzNkLTk2MmYtYWQ4Y2JiOTZhYWQy&hl=en

Tuesday, February 2, 2010

Developing and Deploying General Java Applications

The following short tutorial takes you through some of the basic steps of developing a Java SE application in NetBeans IDE. This tutorial assumes you already have some familiarity with developing Java applications. Along the way, you will see some of the IDE features that simplify application development


All Java Slides Can be downloaded

https://172.16.3.12/cse
User name : BC
Password :java