Arrays.toString() not working?

no matter what i do Arrays.toString() does not work? i thought i was doing something wrong so i found a random code that uses Arrays.toString on stackoverflow to try and it wouldn't work with that too? Just checking here just incase it is an error on my part and not the Dr.java application.
No description
51 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @stapps! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
straightface
straightface2y ago
/run
import java.util.*;

int[] arr = new int[]{1,2,3};
System.out.println(Arrays.toString(arr));
import java.util.*;

int[] arr = new int[]{1,2,3};
System.out.println(Arrays.toString(arr));
I Run Code
I Run Code2y ago
Here is your java(15.0.2) output @straightface
[1, 2, 3]
[1, 2, 3]
straightface
straightface2y ago
@stapps try clean and build
stapps
stappsOP2y ago
whats that mean?
straightface
straightface2y ago
try compiling again
stapps
stappsOP2y ago
did not work i hate dr.java so much
straightface
straightface2y ago
try another IDE eclipse / idea / netbeans
stapps
stappsOP2y ago
k, let me just download em first how do i compile in eclipse?\
straightface
straightface2y ago
green play button
stapps
stappsOP2y ago
alright this time the problem is just that its not recognizing the util
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
what dat oh like util?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
i usually just type java.util.*; in dr.java what do i have too do here?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
oh so i use java.compiler
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
sry i just kinda assumed
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
No description
stapps
stappsOP2y ago
like this?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
does it have to be the same name as the class? GCF
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
i feel like i shoulda learned this earlier
No description
straightface
straightface2y ago
just name it anything for now and add package {your package here} ; in your class file
stapps
stappsOP2y ago
i messed up and I cant find the GCF so i had to start over and the side thing is gone
No description
stapps
stappsOP2y ago
im sorry
straightface
straightface2y ago
goto window in menu you are looking for package explorer
stapps
stappsOP2y ago
alright i think i got this down this time
No description
stapps
stappsOP2y ago
ok, i now have a package
No description
stapps
stappsOP2y ago
and it is still not working :'D
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
i have the dumb thx
stapps
stappsOP2y ago
No description
JavaBot
JavaBot2y ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
stapps
stappsOP2y ago
re-open
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
what does nomenclature mean?
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
dont know what you mean by that?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
i was using dr.java but it wouldnt work on that so i downloaded eclipse to try it on
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
colleges force students too use it its pretty bad ngl
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stapps
stappsOP2y ago
it did not work
No description
stapps
stappsOP2y ago
i keep downlaoding and redownloading java too the java versions in the video seem different tho, is there a different java too download?
JavaBot
JavaBot2y ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Want results from more Discord servers?
Add your server