« first day (2406 days earlier)      last day (2530 days later) » 
00:00 - 17:0017:00 - 00:00

5:00 PM
Both valueOf and parseInt can be used.
 
both cannot be resolved according to intellij :/
 
Can you show me the error? (snapshot of intellij or something)
 
@ItachiUchiha ^
 
What is the type of qTable.getColumns().get(1)?
 
private TableView<String[]> qTable;
wait sorry
TableColumn<String[], ?>
 
5:06 PM
Ahha, there lies the problem.
 
Cast to TableColumn<String[], String>?
 
Yup, just change it to TableColumn<String[], String>
 
change means cast?
 
Don't cast
Why cast?
 
Then how do I change it? :/
 
5:06 PM
Why do you need the wildcard in the first place?
 
I did not program it
 
Aren't all your columns String type?
 
It is List<List<String>> -> Selfprogrammed Wrapper for easier access -> TableView
and in that wrapper the columns are TableColumn<String[], String>
 
Wait, I don't understand. You are not showing me any code :P
 
I think I am onto something. One minute :D
 
5:09 PM
hello everyone
 
@SusHill Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
I have just started learning java and I have a problem.. how to store a output value in an array which can be used for further calculation ?
 
Cast will just work, but if all your columns display data which are of String type, I would just change them to TC<String[], String> instaead.
@SusHill What do you mean by output of an array?
 
lets suppose i have a function which prints the factor of a number
and i want those factor to be stored in an array
how can i store them in an array ?
@ItachiUchiha How can i store them in an array?
 
Your method should return an array instead.
 
5:13 PM
@ItachiUchiha Is a paste enough or should I upload it to github? It is only one file :)
 
@geisterfurz007 pastie should do
 
yea man https://paste.ofcode.org/ELTZXFQ7E84wMvPgtstjN9
is there any way that the output factor can be used again to calculate the shortest distance between those factor
 
Apologize in advance for potentially horrible code @ItachiUchiha
 
lol
 
public int[] factors(int number) {
  int[] factors = new int[number/2]();
  int index = 0;
  for (int i=2; i<number; i++) {
     if (number % 2 == 0) {
        factors[index++] = i;
     }
   }
   return factors;
}
@SusHill Something like this ^
/help
 
5:18 PM
Commands=====================
/8ball     Simulates a magic 8-ball.
/about     Displays information about this bot.
/afk       Allows users to mark themselves as "away".
/cat       Displays a random cat picture. :3
/define    Displays word definitions from the dictionary.
/help      Displays this help message.
/http      Displays information about HTTP status codes and methods.
/javadoc   Displays class documentation from the Javadocs.
/learn     Teaches the bot a new command.
/react     Displays a reaction gif.
 
/react wtf
 
@ItachiUchiha Unknown human emotion. Please visit replygif.net/t for a list of emotions.
 
So horrible?
 
/react what the fuck?
 
5:19 PM
uh oh :/
 
@geisterfurz007 What is that piece of code doing?
 
That paste?
 
@ItachiUchiha So factor will be the array of the output factorial ?
 
From what I see the piece of code that I am interested in should be - paste.ofcode.org/gqsf2pcmgw6rq5Tg2Y6U3a
@SusHill The method returns an array of factors for any given number (except 1 and the number itself)
 
@ItachiUchiha The base is taken from here: stackoverflow.com/a/38106525/6707985
what it does is take in a tableview, clear it, create new columns with the factories to fill them, add everything to said tableview, fills in the data and done
 
5:24 PM
I do understand. But, where is TableColumn<String[], ?> ???
 
I have no idea :)
That was what I was trying to say :D
I did not program that :D
That was why I thought about casting because I have no clue what I would have to change to get TableColumn<String[], String> out
 
Oh, I know :)
It is returned but the JavaFX API :D
 
I think I am not able to follow :/
 
public final ObservableList<TableColumn<S,?>> getColumns() {
     return columns;
}
 
So I cannot change anything? :D
 
5:26 PM
You can type-cast :)
 
yeah ok so casting is the only way
Quick question to make sure: there is no difference between type-cast and cast, right?
 
Different languages have different notions. In Java, I guess all casting are basically type-casting, so it doesn't matter what you use.
 
ok I will look into that :) Thanks for your time and help!
 
NP :)
 
And it works \o/
 
5:37 PM
\o/
 
\o/
 
5:53 PM
quack!
/duck
 
quack
 
ooh
@ColdFire 'ello
 
quack
 
@geisterfurz007 'ello
 
5:57 PM
g'day
 
cheerssssssssssss
 
akn
Hi. I've made a small app in spring boot + gradle and now I'd like to add env configruations. One for local testing, one for prod (there will be differences in mysql config). What is the best way to do it?
I've tried to use profile specific application.properties (application-prod.properies and application-local.properties) but it doesn't work.
 
6:21 PM
@PauloCereda o/
 
@ItachiUchiha 'ello!
 
Yellow! That's your color :P
 
@ItachiUchiha Can't I put the values of i from line no paste.ofcode.org/ELTZXFQ7E84wMvPgtstjN9 no to put it in array ?
 
@ItachiUchiha o/
@PauloCereda quackkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
 
@ColdFire \o
 
6:23 PM
whatsup
how is SSD going?
 
@ColdFire a merry quack to you as well, kind sir
 
Super. My IDE, gradle task and server boot up time have all reduced drastically. I am super happy!
@SusHill Sure, you can
 
@ItachiUchiha great rich Ita
btw which one you purchased?
 
@ColdFire says someone who already has 1 :P
@ColdFire Samsung 850 EVO
 
@ItachiUchiha actually 2
@ItachiUchiha same as mine
 
6:25 PM
Wow!!
Super Rich you are :P
 
lol the 2nd one is in my mac
 
hehe
 
user8063991
DoggyBot online. Woof woof!
 
@DoggyBot Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
user8063991
6:35 PM
@OakBot Type //help to see all my commands.
 
@DoggyBot Type /help to see all my commands.
 
user8063991
@OakBot Type //help to see all my commands.
 
@DoggyBot Type /help to see all my commands.
 
user8063991
@OakBot Type //help to see all my commands.
 
@DoggyBot Type /help to see all my commands.
 
6:35 PM
shit
 
user8063991
@OakBot Type //help to see all my commands.
 
@DoggyBot Type /help to see all my commands.
 
user8063991
@OakBot Type //help to see all my commands.
 
@DoggyBot Type /help to see all my commands.
 
//GoToBed
 
user8063991
6:36 PM
@OakBot Type //help to see all my commands.
 
@DoggyBot Type /help to see all my commands.
 
user8063991
Shutting down. See you later.
 
@PauloCereda Saved.
 
Done.
 
user8063991
6:37 PM
DoggyBot online. Woof woof!
 
/banana
 
Sorry 'bout that bot loop
 
ooh a dog bot
 
Does Camel run as a part of a JVM within a container such as Tomcat, with components also in that container, or are the components in separate processes?
 
6:39 PM
//dog
 
user8063991
 
//cat
 
user8063991
 
//lick PauloCereda
 
user8063991
@PauloCereda licks your arm. Woof woof! (It is OK, I'm a dog)
 
6:41 PM
woof
 
wooooooooooofffffffffffffffffffff
 
@DoggyBot OH NO
 
user8063991
@PauloCereda Type //help to see all my commands.
 
/quacks in despair
 
how to get a result in an array in java?? I am stuck in it.. tried googling for an hour but can't figure out to store the calculated values in java and reuse them. Does anyone have a solution for it ?
 
6:44 PM
Heading back to Java and Android era. Cya
//unsummon
 
user8063991
@LunarWatcher Bye.
 
cya
 
ooh the crab is here
Hi @ballBreaker
 
heyo
 
6:57 PM
heyyo
 
hello guys
 
crabssss and quackkkkkkkkkkkkkkkkkkkkkkkk
now fox and catt remain
then we have a full jungle
 
plz point me out how to solve this one .... paste.ofcode.org/ELTZXFQ7E84wMvPgtstjN9 .... how to use value of i from line 20 to an array in line 25
 
shit...
Wanted to stop programming about 90 minutes ago
 
7:06 PM
lol
 
well it is not even like I got something done. I spend most of the time researching and discuassing with itachi...
9:07 pm and I did not eat anything the whole day except a bowl of cereals :D
 
well its 12:46 am here
 
46 O_O
 
eh?
 
I thought the minutes where the same all around the globe :/ But as it seems you are another 30 mins in :D
 
7:38 PM
@geisterfurz007 The time zones of a some countries (like India and Nepal) can be 15, 30, or 45 minutes off from the rest of the world.
 
Quick question for anyone willing to help. I'm trying to turn a recursive function into an iterative one (basic, I know), but the recursive function is being called in a for loop. Can't find any good examples.
 
@ndm13 Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
@JennaSloan Yeah I knew that and lost that knowledge for a bit :D Thanks for the map, though!
and yaaaaaaaaay I got stuff done finally \o/
 
8:01 PM
@geisterfurz007 nope
we are at gmt+5:30
@geisterfurz007 nice
 
@SusHill what are you trying to do, again?
@ndm13 the fact that the recursive function is being called in a loop is not helpful. Try to describe what your problem actually is.
 
8:17 PM
@arcy A majority of the examples are in the vein of method(arg){if(condition) return value; else return method(arg + modifier);}. There's a loop within the method and I can't figure out how to account for it without using my own stack, which is something I want to avoid.
 
8:43 PM
Hi all, I am trying to create a ConnectionFactory class which uses a Singleton inside. I need to pass some parameters to construct this class because I don't want to hardcode the host, port, etc... Can I achieve this with the Factory pattern?
 
@Freddy Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
I basically want to replace the hard coded parameters here: paste.ofcode.org/32HvxsyvCRvth3L6vkYJFNe
 
@ndm13 sorry, that's beyond me to visualize without an explanation or some trial-and-error. If you ever come up with an explanation of what it does, I might could help.
 
9:03 PM
A little outline:
- take a state and a string as arguments
- make a set to hold generated strings
- get the potential next characters in the string
- for each potential next character:
- create a string with that character appended
- if there's a state for the new string:
- add the strings for that state to the set (recurse)
- else:
- add the new string to the set
- return set of strings
@arcy Rewrote snippet to line up with outline a little better: paste.ofcode.org/36xJsMTVXKLjM9NnLPJyt4T
I would love to eliminate the recursive call on line 9, since the strings I'm dealing with are potentially long enough to cause a StackOverflowError
 
9:49 PM
@ndm13 What is the State object in the context?
 
10:08 PM
@JennaSloan dk.brics.automaton.State IIRC. Not important. Simply provides a list of characters.
 
11:01 PM
@ndm13 I think there might be a way to do it, but I'm not going to pursue it any more.
I really need to know what the heck is going on; your additional explanation helps, but it doesn't tell me why you're storing strings when the state becomes null, or why the state depends on the string from getCharactersInState but not on the prefix, etc. Your last code has a typing error, incidentally, I'm pretty sure you meant nextState in both places, not nextState in one and next in the other.
This becomes significant when I'm trying to think of how to generate strings for an arbitrary string.
(I mean, understanding what's going on does, not the typing error)
Anyway, good luck with it.
 
00:00 - 17:0017:00 - 00:00

« first day (2406 days earlier)      last day (2530 days later) »