Forum: JSP Mar 25th, 2008 |
| Replies: 1 Views: 726 How to write code in Java Beans for accessing databases in case of MVC? |
Forum: Java Mar 24th, 2008 |
| Replies: 2 Views: 1,392 |
Forum: Java Mar 23rd, 2008 |
| Replies: 2 Views: 1,392 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 What do you mean by Synchronized classes? |
Forum: Java Mar 9th, 2008 |
| Replies: 4 Views: 930 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 I just want to know why java does not support operator overloading? |
Forum: Java Mar 3rd, 2008 |
| Replies: 1 Views: 430 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 |
Forum: Java Feb 29th, 2008 |
| Replies: 4 Views: 574 |
Forum: Java Feb 28th, 2008 |
| Replies: 4 Views: 536 |
Forum: Java Feb 28th, 2008 |
| Replies: 4 Views: 574 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 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 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 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 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 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 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 Could you suggest me any other way of converting a string to an ineger? |
Forum: Java Feb 27th, 2008 |
| Replies: 13 Views: 9,189 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 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 |
Forum: Java Feb 26th, 2008 |
| Replies: 11 Views: 3,980 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 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 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 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 Views: 467 Why JVM is platform dependent? |
Forum: Java Feb 24th, 2008 |
| Replies: 2 Views: 577 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 Views: 577 It is known as bitwise OR. |