Re: [java ee programming] Lab 4010 home work problem

2009-12-30 Thread Bimal Java
Because, == checks for address and .equals checks for value On Dec 30, 2009, at 3:22 AM, Sumant wrote: > Why I get True for Equals and false for == ? here is the code below... > > > > public class Test12 { > > > public static void main(String[] args) { > String str1=new String("abc

Re: [java ee programming] Lab 4010 home work problem

2009-12-30 Thread Alexey Filippov
Please refer to JLS § 3.10.5 or a popular description at http://www.janeg.ca/scjp/lang/strLiteral.html == returns false 'cause these are different objects: you explicitly create str1. 2009/12/30 Sumant : > Why I get True for Equals and false for == ? here is the code below... > > > > public class

Re: [java ee programming] Lab 4010 home work problem

2009-12-30 Thread Sumant
Why I get True for Equals and false for == ? here is the code below... public class Test12 { public static void main(String[] args) { String str1=new String("abc"); String str2="abc"; System.out.println(str1.equals(str2)); // Returns True System.out.println(

Re: [java ee programming] Lab 4010 home work problem

2009-12-11 Thread Mihai DINCA
Hi Peeter, From the command line, try to "DIR C:\PROGRA~1" or "DIR C:\PROGRA~2". One of them (let's say "DIR C:\PROGRA~2") behaves like "DIR C:\Program Files (x86)". In this case: set JAVA_HOME=C:\PRGRA~2 It is a real mess the default "Program Files" value when installing programs under W

[java ee programming] Lab 4010 home work problem

2009-12-11 Thread peeter brunch
Hi, I have downloaded Java JDK 1.6 14 as my development kit for the J2EE) Programming (with Passion!) Basics course. My home directory for the JDK is under C:\Program Files (x86)\java\jdk1.6.0_14. I ran into the trouble of doing home work LAB-4010: Web Application Security Threats a

[java ee programming] LAB-4010: Web Application Security Threats and Counter-measures : Problem when start webgoat.bat

2009-04-24 Thread Zahari Palazov
When I start webgoat.bat file I get the following message ? I use jdk1.6.0_12. I don't understand what exactly do I need to upgrade ? I M P O R T A N T U P G R A D E N O T I C E .. WebGoat 3.5 uses Tomcat 5.5.4 as the def

[java ee programming] Lab 4010

2009-04-02 Thread biljana_bljn
Hi everybody!   Is enybody saw the code of WebGoat, is it given to as like java source code, or like executable java class?   Because they not give as posibility to see java code in window, that option is grey. They just tickled our curiosity.   Regards, biljana --~--~-~--~~-