Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
86% Quality Score
Upvotes Received
21
Posts with Upvotes
15
Upvoting Members
16
Downvotes Received
5
Posts with Downvotes
4
Downvoting Members
3
6 Commented Posts
~49.1K People Reached
About Me

I love Java

Interests
Sleeping , Riding 2 wheeler and 4 wheeler aggressively.
Favorite Tags

41 Posted Topics

Member Avatar for debasisdas

[COLOR="Green"][B]"The Secret of success is to know something which no one else knows"[/B][/COLOR]

Member Avatar for James_28
8
17K
Member Avatar for blackcathacker
Member Avatar for peter_budo

[CODE]import java.util.*; public class QuickCoding { public static void main(String[] args){ int myArray[] = {1, 2, 3,5,1}; List list = new ArrayList(); for(int i=0;i<myArray.length;i++) list.add(myArray[i]); Set<Integer> set = new HashSet<Integer>(list); if(set.size() < myArray.length){ System.out.println("There are some duplicates"); } } }[/CODE]

Member Avatar for odoepner
4
971
Member Avatar for fo2sh
Member Avatar for NormR1
0
908
Member Avatar for a.oprea

[QUOTE=peter_budo;1619803]Use Iterator class [/QUOTE] [CODE]import java.util.*; public class NewClass1{ public static void main(String[] args){ List<Integer> numbers = new ArrayList<Integer>(Arrays.asList(23, 43, 40, 10)); System.out.println("BEFORE DELETE " + numbers); numbers.remove(new Integer(43)); System.out.println("AFTER DELETE " + numbers); } }[/CODE] We can remove particular object without using iterator also, In case if we dont …

Member Avatar for JamesCherrill
0
213
Member Avatar for blackcathacker
Member Avatar for Muralidharan.E

Which Windows OS functionality is fast and more user satisfied OS? Windows 7 (or) Windows xp (or) Windows 98 second Edition? Windows 98 is very old i knew. But its good to compare with latest OS's .Because Nobody will forget about windows98 whomever used before XP revolution. Thanks in advance.

Member Avatar for caperjack
0
280
Member Avatar for Muralidharan.E

I am new for struts framework. Now i am in need of learning struts2 with ajax(dojo) which i need to implement in forthcoming project work. So anybody can you please provide me or direct me by giving correct website link where i can learn struts2 with ajax(using dojo library). I …

0
62
Member Avatar for faroukmuhammad
Member Avatar for Hani1991

Some members the way they are answering for doubts are really useful. Especially in jave- JeffGrigg,masijade,Ezzaral,NormR1,Zetlin etc..

Member Avatar for MooGeek
3
402
Member Avatar for Muralidharan.E

I am new for struts framework. using eclipse i want to create small web application with struts2 framework. All struts lib jar files(common-logging,freemarker,ognl,struts2-core,xwork-core) i have included web-inf lib directory. And exactly i have followed this [URL="http://viralpatel.net/blogs/2009/12/tutorial-create-struts-2-application-eclipse-example.html"]link [/URL]procedure to practice. but i am getting HTTP status 404 error. please give me …

Member Avatar for Muralidharan.E
0
85
Member Avatar for sha11e

[QUOTE=sha11e;1640239]But does char arrays have terminating \0? It doesn't seem like it because I can do char[] array = {'h','e','y'}; without any \0[/QUOTE] array is a class in java. In C++ \0 will be stored automatically to detect end of character while reading. But in java no need of that, …

Member Avatar for JamesCherrill
0
3K
Member Avatar for installer
Member Avatar for buba_kazouba

[QUOTE=buba_kazouba;1621140]i wanted to create a gui java program that reads info from MySql then output it in a JTable. but i first tried to use the JTable because it was my first time to use it. It worked perfectly but when i tried to read from the database it doesn't …

Member Avatar for buba_kazouba
0
218
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? If i will override static method means, friends are saying it is not compile time polymorphism, It is method hiding. I need some examples …

Member Avatar for Fbody
0
595
Member Avatar for ba.accounts

[QUOTE=ba.accounts;1620818]Hi, Just wondering if anyone has any example of reading data from a file and storing it into an uneven 2D array. For example: the file contains [a,b,c] [a,b,c,d] [a,b,] etc I am able to do this with a complete "square" or matrix but when the columns aren't even I'm …

Member Avatar for ba.accounts
0
2K
Member Avatar for Muralidharan.E

I am using old p3(933 mhz) processor with VIA motherborad and 512+256 ram. Is it possible to install windows 7?

Member Avatar for Muralidharan.E
0
357
Member Avatar for harinath_2007

[QUOTE=harinath_2007;1620188]Hi folks.. Can you tell how many times the loop is executed with [B]exact[/B] reason. [CODE] int c=10; while(c>1) { c++; } System.out.println("loop over."); [/CODE] I am expecting an indepth answer...[/QUOTE] size of int is 4 bytes and range is -2,147,483,648 to 2,147,483,647. so loop will execute [COLOR="Green"]2147483638 [/COLOR]times. The …

Member Avatar for harinath_2007
-1
228
Member Avatar for sim_pack

[QUOTE=sim_pack;1620536]hi, i have a JButton object and i added an actionListener to it. it works well with a mouse click, but if use the keyboard enter key while the focus is on the JButton, nothing happens. do i need to add a keypress listener on top of the actionListener to …

Member Avatar for mKorbel
0
469
Member Avatar for fcaoile

[QUOTE=fcaoile;1620605]I have a java gui app which will be used by various secondary schools.[/QUOTE] Your gui application is stand alone application or distributed application?

Member Avatar for Muralidharan.E
0
115
Member Avatar for aman rathi

[CODE]manager(int id,int sal,String name,int bonus){ //Here defaultly emp() default constructor will be called. this.id=id; this.sal=sal; this.name=name; this.bonus=bonus; }[/CODE] emp() default constructor will be called in the above code if you didnt call any base class constructor. So either pass your arguments by using super(id,sal,name); which will be matchable for your …

Member Avatar for aman rathi
0
195
Member Avatar for algotycoon

[QUOTE][CODE]cout << SOFTWARE; cout << S; cout << SO; cout << SOF; cout << SOFT; cout << SOFTW; cout << SOFTWA; cout << SOFTWAR; cout << SOFTWARE;[/CODE] crappy question, crappy answer[/QUOTE] cout<< belongs to "C++", Not to "C"

Member Avatar for Muralidharan.E
-3
145
Member Avatar for Panathinaikos22

No need to know so many languages c#, c++,c,php,asp,java,perl,delphi ..... If you are strong(Good knowledge) in one programming langauge(For example in java) , is enough to say that You are a good java Programmer. So you can say as "Java programmer" as well as "Programmer".

Member Avatar for Rashakil Fol
0
194
Member Avatar for Haridha

You can go through [URL="http://download.oracle.com/javase/tutorial/java/javaOO/constructors.html"]this[/URL].

Member Avatar for Muralidharan.E
0
72
Member Avatar for Muralidharan.E

I am using 3g wireless USB modem in my desktop computer. Due to signal problem I have connected 3g device through 6 metres data cable(By keeping 3g device near to window to get good signal) to my computer. Device is detecting.. But its showing "problem in installing driver for your …

Member Avatar for Muralidharan.E
0
139
Member Avatar for Muralidharan.E

Hi friends I am using old p3 processor(933 mhz) with 512+256 ram and 40 gb harddisk. I want to extend my harddisk capacity. Is it possible to update in to 500 gb hard disk for p3 processor. Will it accept?

Member Avatar for caperjack
0
108
Member Avatar for tammy12w

[QUOTE=Zetlin;1617661]Getters and setters are the basics of Object-Oriented Programming, they allow encapsulation of class members. [/QUOTE] Then it is not a primary rule for basic bean specification? I have not learned getter and setter methods in object oriented programming.. Now only i am hearing.

Member Avatar for stultuske
0
120
Member Avatar for laguardian

[CODE] public class SumOfPow { public static int exponent(int n,int m) { int nProd = n; // COMPLETE THE CODE THAT MAKES THE FUNCTION RETURN n^m for(int i=1;i<m;i++) nProd=nProd*n; return nProd; } public static void main(String args[]) { int N=7, M=4; int Power = 0; // Complete the code with …

Member Avatar for Slimmy
0
2K
Member Avatar for aman rathi

Problem is with your sw method. Line No 20,21,22. In your sw method just you are swapping the reference. Not the original values. So you can try as like the following way. [CODE]static void sw(emp a, emp b) { emp temp=new emp(); // To store the temp values... In this …

Member Avatar for aman rathi
0
241
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? Is that so how to give example for compile time polymorphism in java? If i will override static method means, friends are saying it …

Member Avatar for Zetlin
0
270
Member Avatar for sathya88

If you are using another class [CODE] public class Constructor_benifit{ public static void main(String[] args){ System.out.println("In primary Thread"); A a=new A("Test string for secondary thread"); Thread thread_object=new Thread(a); thread_object.start(); } } class A implements Runnable { String to_print; A(String to_print){ this.to_print=to_print; } public void run(){ System.out.println(to_print); } }[/CODE] In same …

Member Avatar for Muralidharan.E
0
15K
Member Avatar for techy23

Pass by value- Pass primitive datatype variable. Pass by reference- pass class Object.

Member Avatar for Muralidharan.E
0
179
Member Avatar for madhub2v

[QUOTE]Try Glassfish or Geronimo. [/QUOTE] GlassFish is not apache's server. It is from Oracle. Question is [QUOTE]which tomcat version is application server .? And is there any application server from apache people...? [/QUOTE]

Member Avatar for masijade
0
199
Member Avatar for sathya88

[QUOTE]how to view method definition present in the predefined package... that means if we type javap java.io.BufferedReader it will shows Compiled from "BufferedReader.java" Java Syntax (Toggle Plain Text) public class java.io.BufferedReader extends java.io.Reader{ public java.io.BufferedReader(java.io.Reader, int); public java.io.BufferedReader(java.io.Reader); public int read() throws java.io.IOException; public int read(char[], int, int) throws java.io.IOException; …

Member Avatar for sathya88
0
216
Member Avatar for Muralidharan.E

Hi friends, What is the main benifit of using GWT in web applications? Is there any popular sites which has been developed by using GWT? Which is the best website to learn about GWT with easy examples? Thanks in advance !

Member Avatar for Muralidharan.E
0
141
Member Avatar for akasekaihime

I have copied and pasted your code.. Its working fine.. How do you executing your program, Using eclipse,netbeans or using textpad?? See the attachment.

Member Avatar for peter_budo
0
187
Member Avatar for vishal1949

[QUOTE]This is my code. I was using bubble sort but it didnt go to well. Could someone help. P.S. I cant use Java.util at all. [/QUOTE] Yor are almost correct except 2 logic mistakes.. In line no 17 : [CODE]if(stringInput[j].compareTo(stringInput[j+1]) > 0)[/CODE] You are comparing with index j+1 . And …

Member Avatar for Muralidharan.E
1
591
Member Avatar for Abhiradh

[QUOTE]my system is restarting again and again without loading windows os....? [/QUOTE] Your system is getting restart after the windows loading(booting) window or before booting window or at the time of booting windows?

Member Avatar for Muralidharan.E
0
53
Member Avatar for ganeshtr24

static Main method will be invoked by JVM which is outside of package. So we should use public access specifier for main method. Otherwise method will not be visible for Jvm.

Member Avatar for Muralidharan.E
0
68
Member Avatar for Muralidharan.E

[CODE]class Test{ static String str[]; public static void main(String args[]){ System.out.println("args "+args); System.out.println("str "+str); } }[/CODE] [U]Output[/U] args [Ljava.lang.String;@3e25a5 str null My doubt is ... How some object address is printing for args when it has not initialise. In case it has got initilised ,without array size specifiction how its …

Member Avatar for Zetlin
0
190
Member Avatar for jex310

[CODE]JTextField inputxend=new JTextField("0",5); JTextField inputyend=new JTextField("0",5); JTextField inputxpoint=new JTextField("0",5); JTextField inputypoint=new JTextField("0",5);[/CODE] Instead of giving "" , change into "0", what i have specified in the avove. Reason is Integer.parseInt("") will not work because changing " " to number is impossible.. so if you will give "0" will be converted …

Member Avatar for Muralidharan.E
0
129

The End.