- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
20 Posted Topics
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)
String a = "abcd125xyz1mniop897"; String[] n = a.split("[a-zA-Z]+"); Now you have to form similar way regex for getting character array... String[] c...
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 …
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]
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, …
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 …
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
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]
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 ?
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 …
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 …
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 …
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.
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 …
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 …
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 …
Problem may be with Power supply pin in Motherboard.
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 …
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 …
I am computer engineering student. I am new here. I hope this community will help me a lot to be successful in IT industry.
The End.
sawant_nitesh