Manish Vig

Greenhorn
+ Follow
since Oct 03, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manish Vig

I am using Access database and I have made UserDSN,FileDSN and System DSN but is not working .
Can anybody let me know what could possiblybe wrong
Hi ,
Can any body explain this.
I am using jsdk2.0 servlet runner at port 8080 servlet.properties file as ./examples/servlet.prperties and servlet dir as ./examples.
When i wrote my first servlet (first.class)i had modified the servlet.properties file by adding
servlet.first.code=first
and tried to access my servlet as http://localhost:8080/examples/first with My servletrunner running fine
I get a 304 error saying you are not authorized to access this.
In fact this error comes for every servlet i access .
Can anybody explain this.
Am i missing something.
23 years ago
Dear Friends
Can you help me wit this code and its result.
I was trying to get the sum of a five digit number when i stumbled upon this
<code>
import java.io.*;
class Sum{
public static void main(String args[])throws Exception
{ int d=0;
DataInputStream dis= new DataInputStream(System.in);
int k=dis.readInt();
for(int i=0;i<5;i++)
{
d=k%10;
System.out.println(d);
d+=d;
k/=10;
System.out.println(k);
}
System.out.println(d);
}
}
</code>
The result is absolutely stupefying with the no 12345
Say.
Why is this.
Is it because this method is only suitable for reading bytes written by DataOutputStream.

[This message has been edited by Manish Vig (edited October 31, 2000).]
I have been unsuccessfully trying to use packages for quite some time
can any body guide me
<code>
package mypackage;
class super{ }
</code>
I compile it and changethe classpath to the directory where i was workingwhen i compiled the above code e.g C:\manish directory.
so my classpath is %classpath%;c:manish;
however in the other source file when i import mypackage.super
it doesn't gets imported
What is wrong?
Thanx
I think this would certainly help,
I twas looking for some option at commandline that could do the stuff,There is none for javac but i thought there is another way.
Anyway thanks
23 years ago
Hi there,
i am new to Java ranch!
How do u get to have large outputs and error messages to be directed into a file rather than the DOS Window
23 years ago
Well , i am to give it on 18th Oct,Even i haven't got the faintest idea, about what changes they have made.
If you happen to get any news ,keep all of us posted in JavaRanch
the only thing i know is that now the time allowed is 90 min
I am very sorry to hear that, in fact i am shocked myself .
I was supposed to give exam on 18th,
and i have no idea what is in store for me,
what sort of questions are coming?
have they included servelets, and JDBC in it?