saurabh sablok

Greenhorn
+ Follow
since Mar 24, 2011
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 saurabh sablok

how can we use "this" in constructor,rather we cant able to pass class reference variable as parameter in constructor.
like this:-

class ConsThis
{
int x;
ConsThis(ConsThis a,int x)
{
this.x=x;
}
public static void main(String...s)
{
ConsThis t=new ConsThis(t,10);
}
}
what should i use as end point in substring()?
13 years ago

here is the code in which i m using trim() & its not working properly.
13 years ago
i m using trim to remove space but i dont want to remove the trailing zero from string.
it is changing 10 to 1.what can i use instead of trim().
13 years ago