Pages

Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

15 June 2012

Insertion Sort Using Java

This is the last kind of sort you would need for DSF and that's insertion sort.Lets consider an example of it.

Here's the program for it .

Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

Merge Sort using Java

Now let's move on to Merge Sort.Its a pretty simple kind of sort.Let's consider an example first.


So lets see how the program goes .

Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

Heap Sort using Java

Here's another sorting algorithm called Heap sort.Its a little bit tougher than the remaining sort to implement .But we assure you that TJ would provide you with the most simplified programs.Let's consider an example first then we would move to the program.



Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

Bubble Sort Using Java

Here's another program form DSF .We are continuing the sorting techniques.Now lets check out Bubble Sort.Bet you won't find an easier program than the one's here on Tech Junkieee...If you have then please post it in the comments section so that the readers of TJ would benefit from it .

English: an example on bubble sort.

Lets take a look at the example followed by the program

Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

Quick Sort using Java

Here's another program form DSF .This time its the sorting techniques.Let's Start of with Quick Sort.Bet you won't find an easier program than the one's here on Tech Junkieee...
Working of quick sort algorithm:
Input:
12 9 4 99 120 1 3 10 13




Output:
1 3 4 10 12 13 99 120


Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

12 June 2012

Implementation of Queue ADT using java

Here's another /*ADT that we would like to implement and thats the queue.Here's a simple program for the implementation of a queue.



Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

Implementation of Stack ADT using java

Finding tough to write your own Source codes in DSF ( Data Structures and Files).We've come out with a new series of Source Codes for all those engineers.We are starting of with implementations of STACK ADT.
http://www.cs.cmu.edu/~adamchik/15-121/lectures/Stacks%20and%20Queues/pix/stack.bmp
Here's a simple java code for the same.


Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl

26 April 2012

Oracle and Java were no match for Android, Google says Google is trying to drive home the point that Oracle is suing now because it couldn't make enough money off Java and couldn't bring its own platform to market.

SAN FRANCISCO - Besides arguing that the Java APIs were free to implement on Androidbecause they are necessary for using the Java language, Google is holding onto another strategy as well.
That would be arguing that Oracle is only suing Google now because it couldn't bring a smartphone platform of its own to market to compete with Android.
Specifically, Google counsel Daniel Purcell focused on the development of full stacks while rolling through witnesses on Thursday morning at the U.S. District Court, starting with former Sun Microsystems and Oracle exec, Craig Gering.
Purcell sped through a definition of a full stack, which basically entails an operating system's framework and other relevant software. For instance, Android and iOS are examples of full stacks.
Gering worked at Sun Microsystems from 1990 until it was acquired by Oracle in 2010. Thereafter, Gering served as the vice president of the Java unit at Oracle until he left in early 2011.
Purcell pointed towards a number of different full stack projects and attempts at Sun, including "Project Acadia," which stemmed a Sun purchase from SavaJe.
Purcell asked Gering if Sun had gotten Project Acadia to market, would it have had a full-stack platform to compete with Android. Gering said he couldn't recall the details. Nevertheless, Sun never got any such competitor to market.
Purcell also showed to the jury a presentation at Sun from March 2009, titled, "Java in Wireless Business Review." Gering's name was on the title slide as the author of the presentation. Purcell pointed towards a slide that discussed "Project Daneel," which Gering clarified that this was similar to another project at Sun, called "Project Sundroid."
However, this was a gray area as Gering said he couldn't remember if they were the same projects or not. Nevertheless, Project Daneel nearly evolved to a full stack, but it never game about.
Finally, Purcell showed an email to Gering, among other Sun employees, from Sun CTO Vineet Gupta in January 2009. In that email, Gupta discussed that Sun was working on several proposed partnerships with major mobile OEMs and carriers, including Samsung, HTC, T-Mobile, and Sprint.
After Purcell asked if these were some of the top mobile phone companies in the world, he mumbled that was correct. Purcell pressed Gering by concluding that these must have been opportunities for Sundroid, but the project still never made it to market.
After a lightning fast appearance on the stand in comparison to some of the other witnesses called so far in this trial, Purcell called current Oracle executive Hasan Rizvi.
Currently senior vice president of development, Rizvi has been at Oracle since 1990, with a brief departure in 1998 until 2001. Rizvi is responsible for managing Oracle's Java business unit, among other tasks, since the Sun Microsystems acquisition in 2010.
Continuing down the same path, Purcell asked Rizvi if Sun's Java platform was not a full stack platform, to which Rizvi replied it was not, adding that "the java platform is OS agnostic."
Rizvi also confirmed that neither Sun nor Oracle has ever had a full stack -- at least for the Java platform -- on the market.
Through another line of questioning, it looked like Google was trying to also convey that Oracle hasn't been making enough money of Java as it might have previously expected -- thus, another incentive to sue Google for a cut of Android's revenue.
Citing a presentation made at Oracle shortly after Oracle acquired Sun, Google counsel Daniel Purcell highlighted a slide about Java's financial issues.
The slide read that "Java Clients is a $296 million business growing 13 percent year-over-year," and that "it has been historically split into five business segments," including platform and mobile.
Purcell asked Rizvi if this is still the case or if it is at least still growing at roughly 10 percent year-over year. Rizvi had trouble answering initially, replying it has been almost flat since then.
Yet, when a video clip from his deposition on July 28, 2011 was played back for the jury, Rizvi had said that the 10 percent figure was based on a recent memory, adding that "I wouldn't be able to make it more precise by saying it's 13 percent right now."
This story originally appeared at ZDNet's Between the Lines under the headline "Google: Sun, Oracle couldn't compete with Android.

Technorati Delicious Reddit BlinkList Furl Mixx Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl
Related Posts Plugin for WordPress, Blogger...
Search Engine Submission - AddMe Hypersmash.com Blogarama - The Blog Directory Bloggers - Meet Millions of Bloggers