Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!

Kuldeep Vaishnav

Ranch Hand
+ Follow
since May 23, 2004
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 Kuldeep Vaishnav

is the space between two equals in your javascript if condition just a typo or you have it as it is in your code ? is it valid,not sure..can someone shed light? Also would not it be helpful to have an alert outside the if so at least we know the js function is called.May be this time it is returning true because of the way condition is written and we are thinking the function is not called at all..

Just my .02...
thanks.
Aarthi,
this is what java tutorial says :

http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html

quote (from the above said page)
------------------------------------------------------------------------
Access Levels Specifier Class Package Subclass World
private Y N N N
no specifier Y Y N N
protected Y Y Y N
public Y Y Y Y

The first column indicates whether the class itself has access to the memeber defined by the access level. As you can see, a class always has access to its own members. The second column indicates whether classes in the same package as the class (regardless of their parentage) have access to the member. A package groups related classes and interfaces and provides access protection and namespace management. You'll learn more about packages in the section Creating and Using Packages. The third column indicates whether subclasses of the class � regardless of which package they are in � have access to the member. The fourth column indicates whether all classes have access to the member.
----------------------------------------------------------------------------
****************************************************************************
----------------------------------------------------------------------------
****************************************************************************
----------------------------------------------------------------------------
Lavjeet,

Please create an instance of Puzzle2 (from the same page) and access the protected variable..
it should work.... hopefully
15 years ago
may be because non static member j can not be used in static method main and asign a value in a static manner.May be setJ(int value) would help..aah..thats the best guess i have...

[ August 11, 2005: Message edited by: Kuldeep Vaishnav ]
[ August 11, 2005: Message edited by: Kuldeep Vaishnav ]
15 years ago
----------------------------------------
Nup - keep thinking.
----------------------------------------
why? is it not right ??
15 years ago
bingo
15 years ago
aahh...dumb me..callable extends prepared.....
AFAIK :

for interface CallableStatement

setDate(String parameterName,java.sql.Date date)
setDate(String parameterName,java.sql.Date date,Calendar cal)

are defined but nothing like

setDate(int parameterIndex,java.sql.Date date).

So guess try changing it to one of the two above said or use PreparedStatement to use parameterIndex...

Lemme know.....
[ August 09, 2005: Message edited by: Kuldeep Vaishnav ]
can you post your code please.Might provide better insight.Thanks.
make sure when you are defining you are defining sql date and not util date.Sometimes great minds forget to import java.sql.Date and define util date in turn...
is not interface's main objective is to provide abstract implementation of methods to the implementing class so that every class can have its own implementation? so if you make interface final,it can be defined but can not be implemented, would not it kill the very purpose of defining an interface.
15 years ago
another way is to see if the character is upper case by comparing its ascii value.

Top of my head some rough algo..............
--------------------------------------------
for(var i=0;i till length of string;i++)
var char = charOfString(i);
var asciiVal = ASCII(char);
var resultinString;
if(asciiVal between 65 to 90)
add "" and char to resultinString
else
add char to resultingString
for end
---------------------------------------------
15 years ago
I dont know about inteview questions but the other day when I had some problems with JRIO I did not find anything on JavaRanch.

Is it time to have a section on java issues on mainframe?

Pl. disregard if this has already been taken care of but i could not find.

Thanks.
15 years ago
when i said relaxed grammer i meant looselly forced binding requirements.As far as I know,doc/lit supports user defined objects and not just xml supported data types which is not the case with other combinations of soap transport method/soap encoding.Theoratically speaking that should be the last reason for all these messy webservices floating out there...
15 years ago
to generate sql date use


import java.sql.Date;
.............
.............
Date date = Date.valueOf("yyyy-mm-dd");


comparison as per Praveen K.
is there nethin called rpc/literal ?? never heard of..but dont know again i am towards the bottom of the specturum....I think the most appealing feature of doc/lit is its sort of relax grammer..rpc/encoded is stricter in that manner..
15 years ago