• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

filters

 
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post your code again, the one that produced the errors you posted -- or post them both.  "class" is correct but you have a new problem.  Carefully look at the errors and if they change, then you have usually made progress.  
 
Saloon Keeper
Posts: 8766
71
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems from these two blocks of error messages that you tried to compile two different versions of Employee.java.

This is a different bug than you were chasing before and it seems not to like 'public' so I would suspect the code that came before it which I can't see.

In this file the original problem has  been fixed correctly and it now uncovers the next problem to tackle. If your code is still similar to your previous code then you tried to define a class inside a method, which you shouldn't do. We'd need to see your current code.
It's puzzling as to why you have error messages for javac Employee.java twice. Did you run it, modify it, and run it again?
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this was my very first code:-


this was advised by piet's which i failed to merge within my code and need assistance to merge it in my code:-

 
Marshal
Posts: 74387
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...and is your Employee class, which I don't think I have seen, correct?
 
Campbell Ritchie
Marshal
Posts: 74387
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does line 9 give you? What were you told in your instructions to create? I think we have told you all this before.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no some experts tried to help but they could not help to resolve it yet.
i am not sure what did you mean by line 9 here,i had my code and piet's code now both should be merged so that program could give desired results soon??
 
Knute Snortum
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post your "merged" code and the Employee class?  
 
Campbell Ritchie
Marshal
Posts: 74387
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Ken wrote:. . . what did you mean by line 9 here . . .

What does line 9 in your last code block say?

should be merged so that program could give desired results soon??

What have you merged?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
line 9 says "List<String> employeeFilteredList = employeeList.stream()"

and i tried to merge piet's code in previous posts but not sure how to merge it so looking experts guidance for the same but instead of getting guidance so far properly problem is getting worse day by day and still unable to merge and unable to sort ou this issue despite so many experts being present here.
Hope some expert would quickly help to solve all these errors and sort out this issue within next 3 hours soon now??
 
Campbell Ritchie
Marshal
Posts: 74387
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Ken wrote:line 9 says "List<String> employeeFilteredList = employeeList.stream()"

[My striking out.]...yes, and what sort of List are you supposed to create?

. . . within next 3 hours soon now??

I can solve your problem in 5 minutes. But it is your problem, not mine, and as Tim H has already told you, it is a case of can‑yes, will‑no. If you put as much effort into reading your own code as you are into complaining, you would make a lot more progress. What happened about the *** exercise? Did you get the indentation corrected?
Please stop calling everyboyd “experts”.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it should be employees filtered list based on intended criteria mentioned in my post.


I agree experts do thing they "can" but "will not" --Is it in sync with the spirit of 'friendly place for programming green horns" and if i follow up more than experts start demanding money or start behaving that they are doing some sort of free social service
is it also in sysnc with ''friendly place for programming green horns"
experts please be clear - and either change the tag line 'friendly place for those who are ready to pay'
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
also experts please don't feel bad i know with the level of knowledge by which experts can solve these tough issues within minutes despite that they are intentionally prolonging this issue i say them experts because they have expert knowledge that is why they are experts.
also please don't merge *** execise with this topic and let that *** problem in that thread only.

Thanks
 
Campbell Ritchie
Marshal
Posts: 74387
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Ken wrote:it should be employees filtered list . . .

Right. How are you going to get a List<Employee>?
 
Campbell Ritchie
Marshal
Posts: 74387
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Ken wrote:. . . intentionally prolonging this issue . . .

We aren't prolonging anything.
 
Knute Snortum
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Ken wrote:it should be employees filtered list based on intended criteria mentioned in my post.


I agree experts do thing they "can" but "will not" --Is it in sync with the spirit of 'friendly place for programming green horns" and if i follow up more than experts start demanding money or start behaving that they are doing some sort of free social service
is it also in sysnc with ''friendly place for programming green horns"
experts please be clear - and either change the tag line 'friendly place for those who are ready to pay'


First off, no one is paying anyone.  We're all volunteers here.

Second, please read what is posted at the top of the Beginning Java forum:

"We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers."
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic