Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~3K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.

20 Posted Topics

Member Avatar for sawant_nitesh

Why this code fails.... ? [CODE] String a = "abcd/dgws"; a.replaceAll("/", "\\"); [/CODE] it results in ...... Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(String.java:558) at java.util.regex.Matcher.appendReplacement(Matcher.java:696) at java.util.regex.Matcher.replaceAll(Matcher.java:806) at java.lang.String.replaceAll(String.java:2000)

Member Avatar for sawant_nitesh
0
335
Member Avatar for Rockyboy53

String a = "abcd125xyz1mniop897"; String[] n = a.split("[a-zA-Z]+"); Now you have to form similar way regex for getting character array... String[] c...

Member Avatar for Rockyboy53
0
89
Member Avatar for sawant_nitesh

I want to develop a JAVA application which can send and receive SMS. I have a mobile phone connected to PC through USB cable. This JAVA program in PC should be able to send and receive SMS. AT commands are used to instruct mobile phone to send/receive SMS. But how …

Member Avatar for peter_budo
0
514
Member Avatar for student.09

As far as you are concerned with String validation of email addres, you may use [B][I]Regular Expression[/I][/B] in Java... eg. [CODE] String email = "[email protected]"; boolean isValidEmail = email.matches("[\\w.]+@[\\w]+\\.[\\w]+"); [/CODE]

Member Avatar for sawant_nitesh
0
284
Member Avatar for sawant_nitesh

content eg. 1. java.lang.String, 2. java.util.HashMap<Integer, Integer>, 3. java.util.ArrayList<Integer>, 4. java.util.HashMap<Integer, ArrayList<String>>, 5. java.util.HashMap<Integer, ArrayList<ArrayList<String>>>, I need a regex for matching method parameters in Java. I have tried with this one.. ([a-zA-Z\. ]+,)|([a-zA-Z\. ]+<[a-zA-Z\., ]+(<[a-zA-Z\., ]+>)*>[ ]*,) It is matching first 4 strings. But it is not matching 5th one, …

Member Avatar for Freaky_Chris
0
93
Member Avatar for jrosh

Bring your data from mysql db and write to file.. There are 2 ways for writing Excel : [B]1. Basic Level[/B] Writing CSV(Commma Separated Values) format. Write your data in simple java file using commas(,) & append extension ".csv" to file name. eg. file name : companies.csv data : 1,2,3,4,5 …

Member Avatar for jrosh
0
130
Member Avatar for sawant_nitesh

There are many[COLOR="red"] [I]Java Decompilers[/I][/COLOR] which can decomile [COLOR="Red"][B][I].class[/I][/B][/COLOR] file to [COLOR="red"][B][I].java[/I][/B][/COLOR] file revealing the source. Is there any way to prevent this reverse engineering ? Like in .Net framework, once .dll or .exe is built, noone can reach to source code. ?:S

Member Avatar for verruckt24
0
127
Member Avatar for sawant_nitesh

What is the best approach of writing java code in following 2...... ? What happens at jvm level in each case ? 1. [ICODE] for(int i=0;i<10;i++) { MyClass m = new MyClass(); m.doSomething(); } [/ICODE] 2. [ICODE] MyClass m; for(int i=0;i<10;i++) { m = new MyClass(); m.doSomething(); } [/ICODE]

Member Avatar for javaAddict
0
123
Member Avatar for sawant_nitesh

I want to write a program , [COLOR="red"]JProgressBar [/COLOR]with [COLOR="red"]java.sql.Statement[/COLOR], where JProgressBar gets updated with Statement execution. i.e. I should get progress of Currently executing statement, so that i can set value of JProgressBar... Is it possible ? How to do it ?

Member Avatar for peter_budo
0
109
Member Avatar for k2cool_87

Hi, You can pass formdata to another jsp through attribute action="ur.jsp"... [code=html]<form name=f id=f method=post action=ur.jsp> <input type=checkbox1 value=y /> <input type=checkbox2 value=y /> </form>[/code] then in "ur.jsp" .. write code something like this.. ---------------------- [code=Java]String c1 = request.getParameter("checkbox1"); String c2 = request.getParameter("checkbox2");[/code] -------- Now c1 will get String value …

Member Avatar for k2cool_87
0
142
Member Avatar for sawant_nitesh

I am confused in choosing JavaScript Framework for my Project. I can choose any one of the following frameworks........ [COLOR="Red"][B]EXT JS[/B][/COLOR] [COLOR="Green"][B]EXT-GWT[/B][/COLOR] [COLOR="Red"][B]YUI[/B][/COLOR] [COLOR="Green"][B]jQuery[/B][/COLOR] [COLOR="Red"][B]dojo[/B][/COLOR] and many more....... I don't have any knowledge of any of above all. I am going to start from scratch. But which one to choose …

Member Avatar for ejosiah
0
58
Member Avatar for sawant_nitesh

I m having many dataobjects (*.java)(having getters and setters) My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object. Basically I want to write a log file with all dataobjects which are going to be …

Member Avatar for masijade
0
125
Member Avatar for sawant_nitesh

I am working on a JAVA project which needs to set the System date and time. I want to open Date and Time Properties of Windows through my Project. When I click on JButton, it should open Windows Date and Time Properties. How to do it ? Please Reply.

Member Avatar for sawant_nitesh
0
92
Member Avatar for sawant_nitesh

What is the future of JAVA ? JAVA was overcoming Microsoft's .net because of it's platform independence. As in coming couple of years , Microsoft is going to launch a version of .net that will support all platforms like windows, unix, linux etc. Then will .net become trouble for JAVA …

Member Avatar for hopalongcassidy
0
197
Member Avatar for sawant_nitesh

I am not able to open some websites. some sites are opening. what is the problem ? please help . I have run hijackthis and i got this log file : Logfile of HijackThis v1.99.1 Scan saved at 9:18:23 AM, on 9/29/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet …

0
93
Member Avatar for sawant_nitesh

I am doing Second year engineering. I am confused with where to go in IT field. I mean which software filed to choose like java, .net , oracle etc. etc. Can anyone help me to choose right field that will be evergreen and interesting as well as easier to learn …

Member Avatar for php_noob
0
81
Member Avatar for Rajveer
Member Avatar for sawant_nitesh

I am not able to use my usb pen drive in My Computer. I have windows XP sp 2 installed. Whenever I plug my pen drive, it directly shows "safely remove" icon in the taskbar. My Computer does not show USB drive letter. If I want to access the Pen …

0
64
Member Avatar for sawant_nitesh

I am not able to use my usb pen drive in My Computer. I have windows XP sp 2 installed. Whenever I plug my pen drive, it directly shows "safely remove" icon in the taskbar. My Computer does not show USB drive letter. If I want to access the Pen …

0
71
Member Avatar for sawant_nitesh

I am computer engineering student. I am new here. I hope this community will help me a lot to be successful in IT industry.

Member Avatar for eXceed69
1
46

The End.