Hi there,
I currently have the below problem from a client machine when it tries to connect to the oracle database node. The odd thing is the I get the below error for 5 - 15 minutes and ...
I have a program to encrypt and decrypt a file using AES encryption standard.
It works fine within the same class.
Now I want to implement the same in different classes in different machin...
Hello,
I'm using this code fragment to test if an object in a Vector is a double before I access it...
bisNumber = true;
try { testDouble =...
How do you define Abstraction & Encapsulation ??
Please explain me with an example
Hi,
working on JDK 1.5 , having following query:
i am converting a string to byte array using the code
byte[] stringToByteArray(String str) {
int length = str.length();
...
How do you use the wait method?
Im trying to put a delay between 2 System.out.print lines
i have some problems on how to compare the DATE.
for example,i use the below code to get the today DATE.
java.util.Date today = new java.util.Date();
SimpleDateFormat datestr = new Simp...
in java all time i want to make arry i use Vector it best than arry with more featur
now i want to move to C# i just wnt to know is C# have libary with the same (Vector) function ??
Hi, I'm trying to get ant to exclude source files in a subdirectory called /eaf_schemas/ which is several levels deep in my source tree. I've tried:
<fileset dir="${src.dir}" includes="**/...
I installed J2EE JDK on my NT4 box at work so I can program during my freetime (by accident, meant to install J2SE SDK), but of course it hosed up the previous apps running on JRE 1.3.1.02. I...
i am using JTable in my program.during the running time i like to change single row color.how to change..can u give some ideas immediately..bz it's very urgent.
Thankingyou
Hello,
this is my query :
String query =
"from MyBank b where "
+ "b.institution LIKE UPPER('"
+ startsWith + "%')";
I want to add a distinct on the institution field.
Thank ...
Hello,
I have TOMCAT 5.0.28 using JDK 1.4.2_05. I am trying to add a new application to my webapps but on trying to view the JSP, I get the fwg:
An error occurred at line: 38 in the jsp ...
I am simply trying to create a folder in Java.
I have the specified path assigned to a string "document", which will be the name of the folder. (code below)
I have looked at the Java A...
Hello experts :-)
Just started to learn Java from "Sams teach yourself Java 6 in 21 days".
There is an example there:
import org.cadenhead.ecommerce.*;
public class GiftShop {
pu...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewController' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Can't resolve refer...
Let said I have a string
String test="Test Code";
Can I convert the above string to ASCII code. And then convert back the ASCII code to exact string. Is there any command in Java that can ...
Hi:
I am just trying to write results of a query to a file. When I execute the program, the file is created , but no data is writtent o the file. The output is printed to console without an...
Can some one give me some questions and answers which might be asked in interviews and if possible can you give me the links which has questions and answers for Java , J2EE , EJB , CORBA, C Pl...
I am trying to connect to a DB in java using MSSQL server. I have followed the steps; my CLASSPATH environment variable is currently set to:
CLASSPATH=.;c:\program files\Microsoft SQL Serv...
I have a java project named project1 running on MyEclipse, and project1 is located on C:\Documents and Settings\workspace\test.
on Eclipse, the class path is configrated and I can run proj...
Hi again:)
I guess just a bad day for me.
encValue.replaceAll("//" + (char)43, "%20"); -- does not work
encValue.replaceAll("//+", "%20"); -- does not work
Obviously this:
...
Hello,
I want to format a timestamp like dd-MMM-yyyy hh:mm:ss.SS, I tried like this:
java.sql.Timestamp ts = new java.sql.Timestamp(System.currentTimeMillis());
But the format with th...
I have a ArrayList which contains a list of ASCII codes.
I want to convert all these ASCII codes into characters and place them in a String array.
This is the code I have written for thi...
How can I delay my program between second functions ? I want to do this because after the first function execute , i need to wait for a moment before some data is received thru internet . Aft...