« first day (3439 days earlier)      last day (1726 days later) » 

00:00
The herd instinct among economists makes sheep look like independent thinkers. (source)
 
4 hours later…
04:04
 
6 hours later…
10:04
farts
dhS
dhS
10:24
is anyone suggest me to write test case in spring boot spring mvc application.
11:16
-.-
11:58
What's the best approach to storing error message strings in Java?
posted on March 23, 2020

archive - contact - sexy exciting merchandise - search - about ← previousMarch 23rd, 2020nextMarch 23rd, 2020: Hey, I've got a mailing list for SECRET PALS! If you'd like to be a SECRET PAL, baby, now is your chance. I only send out a message like once a month!– Ryan

oO
brains!
how you are you doing hans?
soso
12:06
shutdown
what about you ?
13:04
same lockdown
:(
/8ball is shutdown the right thing to do ?
@Hans1984 Outlook not so good
hm
/fatcat
haha
13:18
Could someone help me take decision on design part, please :)
Spaghetti
did it help?
Hi guys, I have the following code:
```
@Override
public Object start(final IApplicationContext context) throws Exception {
// ...
}
```
I migrated from Java 1.6 to OpenJDK 8. I get the following error: `The method start(IApplicationContext) of type Application must override a superclass method`. Why is that?
it appears it does not override anything
none of its supertypes have a method with a signature similar to that one
Why is that? IApplicationContext does contain a start method: help.eclipse.org/2020-03/…
My question is why it worked in 1.6 but not in 8
which method do you expect to override?
also, what interface are you implementing?
13:24
Object start​(IApplicationContext context)
Starts this application with the given context and returns a result.
also, keep in mind throws Exception is also part of the signature
if the base method doesnt have that, neither can you
Yes I understand that, it does throws that exception. take a look at the docs: help.eclipse.org/2020-03/…
I'll copy it here:
Object start​(IApplicationContext context) throws Exception
Starts this application with the given context and returns a result. The content of the context is unchecked and should conform to the expectations of the application being invoked. This method can return the value IApplicationContext.EXIT_ASYNC_RESULT if the application will deliver its results asynchronously with the IApplicationContext.setResult(Object, IApplication) method; otherwise this method must not exit until the application is finished and is ready to exit.
it is so frustrating :D
can you show the class you have?
Sure (it's a bit long so I'll show the important parts). The
```
public class Application implements IApplication {
//fields
//methods

/*
* (non-Javadoc)
*
* @seeorg.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.
* IApplicationContext)
*/
@Override
public Object start(final IApplicationContext context) throws Exception {
// code
}
// more methods
}
and if you navigate to IApplication
what is its package?
and do you see the method you want to override?
13:31
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
I do see it: public Object start(IApplicationContext context) throws Exception;
then something really bad is wrong
haha yes, it so frustrating :D
maybe try to use the latest version of that library?
14:15
@Neil @KarelG I JUST RECEIVED THE BEST MAIL! They gave up! They don't insist on the 50k, I am a free man!
9
@geisterfurz007 that's great !
go sing and dance: dobby is free!
looking for the pin button
realizing I am in fact not an RO in here
RO exclusive
@KarelG :D
corona saved your ass geis
congrats
14:22
It did not; it made me wait longer but still good outcome :) Thanks!
@Tarun you can always try to explain your situation
we have some of the greatest software architects in the house... or chat
dhS
dhS
14:58
Hi
How to send the spring boot application from gmail to any other sender
I need to submit the spring application to an organisation. can anyone help me
I am trying to make a zip and send it over gmail .... but gmail is showing that it is unable to attach due to security reasons
@Wietlol ^ lol
dhS
dhS
Ohh please don't laugh
I don't know
Please why gmail is not allowing me to do so ...;(
dhS
dhS
@KarelG
you don't send around software by mail. that's something from before 2000
dhS
dhS
15:03
i read this
But i need to submit the solution.
if it's a whole new project, ask to setup a new repo
or fork from their existing platform
dhS
dhS
Not possible
or another solutions (file sharing services)
ask them how they want to receive it
dhS
dhS
Why gmail doesn't allow us
because we dont send software via mail
15:05
security?
dhS
dhS
I can attach all the files but zip is not attach
Okk it is small app
:(
Crying
ya know, malware was sent around simply because people mailed it and victims opened and executed the attachment
who do you need to submit the solution to?
ask them how to do it
if they say "mail", you quit
trust me, it is worf
dhS
dhS
Okay Fine
Trying by gdrive
worf
dhS
dhS
15:09
what is worf
chhorry
it is.
dhS
dhS
@d0n.key where were you
Watching from the shadows
dhS
dhS
Ohh good good
But now my time has come
And time is not on your side.
dhS
dhS
15:12
Yeah for sure my time will come too.
will wait one day...
every dog has a day...
no, MY time has come
not yours
;)
Goldeneeeeeeeeeeeeeeeeeye
dhS
dhS
hehehe
Btw the jokes
I would like to thanks everyone here on chat room
 
1 hour later…
16:21
@geisterfurz007 Thanks!
 
3 hours later…
19:14
Soo, I got one too many "from an other class" question. It seems to me that they show a problem with the structure of their project.
 
2 hours later…
20:50
no clue with what you mean by that
21:04
hi, people, I need help. how to read text file in java line by line. the text file has multiple line the first few line has a parameter for class1 object the second category next few lines in the file has parameter for class 2 . I want read the file and input the data in to class object . help
@Sirway Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
21:26
hmm... what have you tried so far?
0
Q: How to read text file line by line in Java and exclude some line which start with specific string

SirwayI want to read the text file and input data so that I can create the Patient class object from the input parameter. the Text file contains different lines & categories, the first few lines contain data for Patient class, the next few lines contain data for a drug class, the third category contain...

I have tried that
21:43
and why is it not working?
I would generally use Files.readAllLines()
then you can iterate over them and parse the data
the difficult part is working with the data in the format that is given to you
if you could change the file structure, I would definitely recommend that
but given this structure, you probably want to use an external iterator and using multiple while loops like you did
except... abstracting away the scanner and just using a list or a stream
I cannot change the data structure since it is a part of the big project assignment. Okay, I will try a list or a stream. the problem is it reads the entire file and cannot follow the condition I provided.
condition?
for instance my psedocode is like this :

I want to construct class object from the data input from text file,I have already constructed class and my class parameters are class1 (dat1, dat2),Class2 (data1,data2,data3,data4), Class3 (data1,data2,data3) and Class4 (data1,data2,data3) I want to read using simplest technic as I am new to Java. like file scanner class or bufferedReader . here is my texFile. the psydocode for my plan to implement is like this:

if text line starsWith ("# Patient") while nextLine(!(StartWith(" #drug" ) split line to example1 and exampl2, else if line startWith("#

« first day (3439 days earlier)      last day (1726 days later) »