Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

nipsonanomimata

@nipsonanomimata
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Ok Which was very your first programming language?
    N nipsonanomimata

    turbo pascal 5.5

    The Lounge java html database question

  • array sort performance java vs .net c#
    N nipsonanomimata

    how can i check how much ram is my java-runtime allowed to access? i just installed the jdk1.7 , and build the code using netbeans 7.01

    Java csharp java apache visual-studio linq

  • array sort performance java vs .net c#
    N nipsonanomimata

    import java.util.Arrays;
    import org.apache.commons.lang.time.*; //
    StopWatch api download

    runs 4 times slower than the .net c# code!
    what am i missing? what can i do to improve performance? is this interesting? I am familiar with c# but i wand to deep dive in java
    to broaden my knowledge on languages and frameworks

    here is the code in c#

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Diagnostics;

    namespace ConsoleApplication4
    {
    class Program
    {
    static void Main(string[] args)
    {
    Random r = new Random();
    int[] stuff = new int[100000];
    //int[] stuff = new int[] {4, 7, 2, 0, 9, 1, 6, 7, 5, 4, 3, 8, 6};
    System.Console.WriteLine("Unordered array....:");
    for (int i = 0; i < stuff.Length; i++)
    {
    stuff[i] = r.Next(100000);
    System.Console.Write(stuff[i].ToString() + " ");
    }

    		Stopwatch watch = new Stopwatch();
    		watch.Start();
    		Array.Sort(stuff);
    		watch.Stop();
    		
    		System.Console.WriteLine("Ordered array....:");
    		for(int k=0;k
    
    Java csharp java apache visual-studio linq
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups