|
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.
|
|
|
|
|
Again that is not precise.
A 'dropped' IP packet on a firewall involves very specific functionality. That functionality is different than what occurs when a proxy does not forward a TCP request.
That is because IP is not TCP. Two different protocols.
So if ALL you want to do is not forward a TCP request then it would seem obvious - don't forward it. You can do that in Java.
But that is NOT what happens in a firewall. You can't drop an IP packet in Java because the Java API does not support the IP protocol.
|
|
|
|
|
Decompiled a .class (translating to C++) using third party tools (namely Java Decompiler by Emmanuel Dupuy and DJ Java) and also from the bytecode output from javap; all result in the following:
StringBuffer stringbuffer = new StringBuffer();
for(int i = 0; i < stringbuffer.length(); i++)
{
byte byte0 = (byte)stringbuffer.charAt(i);
stringbuffer.append((char)byte0);
}
I've been scratching my head for hours trying to figure it out. From what I can see it creates an empty buffer, tests the length (which would be 0) against 0 and skips the loop. Please, somebody, explain it to me.
For completeness sake here is the javap output:
0: getstatic #5;
3: ifeq 47
6: new #4;
9: dup
10: invokespecial #9;
13: astore_1
14: iconst_0
15: istore_2
16: goto 36
19: aload_1
20: iload_2
21: invokevirtual #13;
24: i2b
25: istore_3
26: aload_1
27: iload_3
28: i2c
29: invokevirtual #11;
32: pop
33: iinc 2, 1
36: iload_2
37: aload_1
38: invokevirtual #15;
41: if_icmplt 19
44: invokestatic #12;
47: getstatic #6;
50: ifeq 57
53: iconst_0
54: putstatic #6;
57: iconst_0
58: putstatic #5;
61: return
Waldermort
|
|
|
|