Search Results

Showing results 1 to 28 of 28
Search took 0.01 seconds.
Search: Posts Made By: Parsu7
Forum: JSP Mar 25th, 2008
Replies: 1
Views: 726
Posted By Parsu7
How to write code in Java Beans for accessing databases in case of MVC?
Forum: Java Mar 24th, 2008
Replies: 2
Views: 1,392
Posted By Parsu7
Forum: Java Mar 23rd, 2008
Replies: 2
Views: 1,392
Posted By Parsu7
Is it necessary to write a corresponding servlet for each JSP page in case of MVC Architecture?
Forum: Java Mar 15th, 2008
Replies: 1
Views: 690
Posted By Parsu7
What do you mean by Synchronized classes?
Forum: Java Mar 9th, 2008
Replies: 4
Views: 930
Posted By Parsu7
Is it necessary to declare an inner class private?If it is then plz specify the reason why is it necessary to declare an inner class private?
Forum: Java Mar 4th, 2008
Replies: 1
Views: 848
Posted By Parsu7
I just want to know why java does not support operator overloading?
Forum: Java Mar 3rd, 2008
Replies: 1
Views: 430
Posted By Parsu7
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 10
at java.lang.String.substring(String.java:1935)
at...
Forum: Java Feb 29th, 2008
Replies: 4
Views: 574
Posted By Parsu7
Thank you.
Forum: Java Feb 29th, 2008
Replies: 4
Views: 574
Posted By Parsu7
Thank you.
Forum: Java Feb 28th, 2008
Replies: 4
Views: 536
Posted By Parsu7
Thanks a lot.
Forum: Java Feb 28th, 2008
Replies: 4
Views: 574
Posted By Parsu7
I just want to know what happens when this code is written:
public static void main(String[] args) throws IOException
Forum: Java Feb 28th, 2008
Replies: 4
Views: 536
Posted By Parsu7
Ok that thing i know ,i just want to throw an Instantiation Exception and wants to know who handles it and how is it handled . Now the other thing which i want to know is that can we avoid an...
Forum: Java Feb 28th, 2008
Replies: 4
Views: 536
Posted By Parsu7
Suppose i try to instantiate an abstract class then a checked exception is thrown,but who handles it or how is it handled?
Forum: Java Feb 27th, 2008
Replies: 16
Views: 6,929
Posted By Parsu7
Thanks, but can we write this to convert a string such as "asu" to integer

int x = br.read();
int y=br.read();
int z=br.read();

System.out.println(x+y+z);

Please do reply me.
Forum: Java Feb 27th, 2008
Replies: 16
Views: 6,929
Posted By Parsu7
I would be really gratefull to you if you could tell me the point which i am missing.
Forum: Java Feb 27th, 2008
Replies: 16
Views: 6,929
Posted By Parsu7
even if you write Integer.parsrInt("asu"); you will get Number format exception but if you write Integer.parseInt("197") it will give the number 197.
Forum: Java Feb 27th, 2008
Replies: 16
Views: 6,929
Posted By Parsu7
but i have tested every post on my netbeans ide it does not work.
The code which i have posted has been tested and verified on my ide and it does convert "asu" to 97.
Forum: Java Feb 27th, 2008
Replies: 16
Views: 6,929
Posted By Parsu7
Could you suggest me any other way of converting a string to an ineger?
Forum: Java Feb 27th, 2008
Replies: 13
Views: 9,189
Posted By Parsu7
two strings are equal in case of equals method if both strings that you are comparing have the same characters and have the same case such as "hello".equals("hello") will return true as both the...
Forum: Java Feb 27th, 2008
Replies: 16
Views: 6,929
Posted By Parsu7
use the following code to convert any string to integer.

import java.io.*;

public class Strng_to_intg{
public static void main(String[] args) throws IOException
{

BufferedReader br =...
Forum: Java Feb 27th, 2008
Replies: 11
Views: 3,980
Posted By Parsu7
thanks for this syntax.
Forum: Java Feb 26th, 2008
Replies: 11
Views: 3,980
Posted By Parsu7
if it is only "ee" then use

String s=firstString.substring(8,10);
System.out.println(s);

it will give the output "ee"
but if you would want any arbitary substring then your opinion is...
Forum: Java Feb 25th, 2008
Replies: 11
Views: 3,980
Posted By Parsu7
String s ="aabbccddeeffgg";
String s1=s.substring(4,7);
System.out.println(s1);

output=ccd
Forum: Java Feb 25th, 2008
Replies: 11
Views: 3,980
Posted By Parsu7
try using the following code it will surely work.

String s = "aabbccddeeffgg";
String s1 = s.substring(4,7);
System.out.println(s1);

it will give the output ccd.
Forum: Java Feb 24th, 2008
Replies: 13
Views: 1,239
Posted By Parsu7
use the substring method like this
String name = "fred blogs";
String FirstName = name.substring(0,4);
String LastName = name.substring(5,9);
System.out.println("Firstname"+Firstname+"...
Forum: Java Feb 24th, 2008
Replies: 2
Jvm
Views: 467
Posted By Parsu7
Jvm
Why JVM is platform dependent?
Forum: Java Feb 24th, 2008
Replies: 2
Solved: basic questions
Views: 577
Posted By Parsu7
the main point is that we are assigning the default value to the boolean variable removedNodes so that when the program executes and there are any removed nodes then this var will be set to true...
Forum: Java Feb 24th, 2008
Replies: 2
Solved: basic questions
Views: 577
Posted By Parsu7
It is known as bitwise OR.
Showing results 1 to 28 of 28

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC