Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2253

Re: Wont compile!!!

From Knute Johnson <nospam@knutejohnson.com>
Newsgroups comp.lang.java.help
Subject Re: Wont compile!!!
Date 2012-11-10 16:16 -0800
Organization A noiseless patient Spider
Message-ID <k7mqpm$tho$1@dont-email.me> (permalink)
References <35e5c178-ae32-4b1b-930e-5ab16276c3dc@googlegroups.com>

Show all headers | View raw


On 11/10/2012 4:06 PM, tyrelmatadin921@gmail.com wrote:
> This code will not complile and it is really stressing me out.
> If someone could help me out i would really apreciate it. thanks in advanced
>
> package sheridan;
>
> import java.util.Scanner;
>
> public class PayrollStatement
> {
>      PayrollStatement payState = new PayrollStatment();
>
>      payState.printEmployeeName();
>
>      public void printEmployeeName()
>      {
>          System.out.println ("Please enter name");
>          Scanner input = new Scanner(System.in);
>          String employeeName = input.nextLine();
>
>          payState.isEmpty();
>
>
>      }
>      public boolean isEmpty();
>      {
>          String employeeName;
>          if (employeeName == true)
>          {
>              System.out.println ("Not entered");
>              Scanner input = new Scanner(System.in);
>              String employeeName = input.nextLine();
>          }
>
>      }
> }
>

I'm sure it won't.  Why don't you show us the error messages and tell us 
a bit about what it is you are trying to do?


-- 

Knute Johnson

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Wont compile!!! tyrelmatadin921@gmail.com - 2012-11-10 16:06 -0800
  Re: Wont compile!!! Knute Johnson <nospam@knutejohnson.com> - 2012-11-10 16:16 -0800
    Re: Wont compile!!! tyrelmatadin921@gmail.com - 2012-11-10 16:39 -0800
      Re: Wont compile!!! Knute Johnson <nospam@knutejohnson.com> - 2012-11-10 20:44 -0800
      Re: Wont compile!!! Roedy Green <see_website@mindprod.com.invalid> - 2012-11-11 02:51 -0800
  Re: Wont compile!!! Joerg Meier <joergmmeier@arcor.de> - 2012-11-11 01:51 +0100

csiph-web