|
This function is nearly the same as the above one. However, the 2-argument version (I will call it ms2 from now on, and the 3-argument version ms3) was just the, one could say, "standardized interface" that must be used. ms2 calls ms3 like it is the same function. You could also call ms3 just once within ms2, resulting in one more level on the call stack. The implementations of the functions are equal, except for the fact, that the head in ms3 is just used as a return value, which isn't returned at all, because it is accessible in the caller, even if modified. All copies, pointers and auxiliary LEs are assigned referring to the first element. This consumes less time, and is easier in my opinion, even though I wouldn't say that it's impossible without this additional parameter.
And of course the trivial case must be caught in ms3 to end the recursion, which isn't necessary in ms2.
|
|
|
|
|
|
Well, I'm not that friend of recursion, too, but my iterative solution killed the testing framework ^^
Your for-loop has to start at 1, else you reach the first element of the right sub-list.
The 2nd for-loop is redundant. lastRight = in.first.previous; will do the same much quicker and less error-prone.
Except for the missing recursive calls, the merge part and testing for special cases, it doesn't look so bad.
|
|
|
|
|
hey Manfr3d , can you write me the linecodes for methode:
merge ( first left, first right )
thnx
|
|
|
|
|
i am working on mysql to oracle conversion tool but i m facing problem to convert mediumblob data type tooracle medium blob data type any one help me for this problem with runnable code
|
|
|
|
|
|
I am developing an intranet system using net beans.I did all the designing using dreamweaver and for the code part i will use servlet.So i want to know about the options for applying validations(required field,email validation,format) in my project other than java script.
|
|
|
|
|
hmm, you could validate at different occasions. First is the entry field - last chance is when the data is received and used (e.g. an object is created).
Simple things like the required fields can easily be validated by the form itself.
The format of certain values should be validated by the receiver of the data.
regards
Torsten
I never finish anyth...
|
|
|
|
|
sir thanks for your unfinished reply.
that all i understood....but can you please give an example of validating a textfield on client side.....i don't want to perform any server side validation.
|
|
|
|
|
|
thanks a lot.....this one is of gr8 help to me......act i'm new to dreamweaver nd don know it deeply......ur 1st reply was unfinished as ur tag line says u nvr finish nething ......neways.....i nvr thot that i can do this using dreamweaver also.
|
|
|
|
|
public static Intent getIntentForHome(Activity paramActivity, int paramInt)<br />
{<br />
if ((paramActivity == null) || (paramInt == -1));<br />
Intent localIntent1;<br />
for (Object localObject = null; ; localObject = localIntent1)<br />
{<br />
<pre> return localObject;</pre><br />
localIntent1 = new Intent(paramActivity, HomesMapActivity.class);<br />
Intent localIntent2 = localIntent1.setAction("android.intent.action.VIEW");<br />
Intent localIntent3 = localIntent1.putExtra("android.intent.extra.TEXT", paramInt);<br />
}<br />
}
if finish writing this an i got a error saying this at the selected code block
Multiple markers at this line
- Type mismatch: cannot convert from Object
to Intent
- Type mismatch: cannot convert from Object
to Intent
|
|
|
|
|
public static Intent getIntentForHome(Activity paramActivity, int paramInt) {
Intent localIntent1;
for (Object localObject = null; ; localObject = localIntent1) {
return localObject;
}
}
That's a bit of a mess.
Your function states to give back a "Intent":
public static Intent getIntentForHome()
But the return value is a "Object":
for (Object localObject = null; ; localObject = localIntent1) {
return localObject;
}
You need to cast it at least to an "Intent" or - even better - declare it as a "intent" right away.
regards
Torsten
I never finish anyth...
|
|
|
|
|
IWAB0380E Errors were encountered while validating XML schemas.
XSD: The location 'CalculatorService_schema1.xsd' has not been resolved
IWAB0381I http://localhost:8080/WebServiceProject/CalculatorService.wsdl was successfully opened.
Does anyone know what this means? Plz Help me.....
|
|
|
|
|
We might be able to help if you give us a bettersome idea of what you're trying to do. A bit of context never hurts...
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
might be this one:
The location 'CalculatorService_schema1.xsd' has not been resolved
whatever that "CalculatorService_schema1" is - I second Peter in demanding context information.
regards
Torsten
I never finish anyth...
|
|
|
|
|
I am getting the same error, here is my scenario:
I created a WCF service (Framework 4.0) and i am trying to consume it using Eclipse, and i get the the below error
IWAB0380E Errors were encountered while validating XML schemas.
XSD: The location 'http://localhost:23994/Controllers.xamlx?xsd=xsd0' has not been resolved
IWAB0381I http://localhost:23994/Controllers.xamlx?wsdl was successfully opened.
But when i browse 'http://localhost:23994/Controllers.xamlx?xsd=xsd0', i shows a valid schema definition.
Regards,
Wael Al Wirr
http://waelalwirr.sosblog.com/
|
|
|
|
|
can we drop packet passing through us and resend it after altering it to the server so that server process modified request.
if yes how can we prevent.
|
|
|
|
|
Does this have anything to do with Java?
|
|
|
|
|
Actually i am capable resending the packets with help of java.The only thing which i want to know is that can we also drop a packet passing through our system with help of java only(like what firewall does) or we need to take use of jni feature for this.
|
|
|
|
|
If you can resend it with Java then presumably you can drop it with Java.
|
|
|
|
|
I told you i can't drop it,i can only make a copy of the packet and resend it over network.
The thing which i want is like a firewall by which i can stop certain packets.
|
|
|
|
|
csanuragjain wrote: The thing which i want is like a firewall by which i can stop certain packets.
In that case you will need to research how to write a firewall, I would suggest using Google. Your previous questions implied that you already knew how to do this.
|
|
|
|
|
Member 7848138 wrote: Actually i am capable resending the packets with help of java.
Terminology is either odd or you are not doing what you are claiming.
The Java API does not have an api to access IP.
It has api to access TCP and UDP.
A 'packet' would normally refer to IP.
If your java code is acting as a proxy for TCP then a 'drop' is nothing more then not sending it along the way.
That however is not what one means in terms of a firewall when one says that is it dropping packets.
|
|
|
|
|
ok,
let me make myself very clear about the problem.
I want to drop certain packets passing through my computer like for eg i would like to drop a tcp packet moving from my own computer to a diffrent computer.
|
|
|
|