Jump to content

Search the Community

Showing results for tags 'java help me'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Hi everyone, ive writtern this code and it doesnt work properly, can someone please help me to understand why this doesnt work. Or one better, solve the mystery! Thanks in advance! import java.util.Scanner;/* This program is from lecture 3, it asks the user for their name, then says hello name* if that name = lucy then i want it to say something else.* 19/10/11* @author ahr */public class lecture { public static void main (String[] args) throws Exception { String name; System.out.println("Enter your name"); Scanner Scan = new Scanner(System.in); name = Scan.next(); if (name = "lucy") System.out.print("Hi Rucy Roo"); else System.out.print("hello " + name); }}
×
×
  • Create New...