Questions tagged [Java] (8047)

0
answer

Why not receive the image from the Storage Firebase?

Why, when I register user via phone using firebase, it is some time displayed the image, and then not??? My guess is that I did not properly autoriser user. Here's the code output. firebaseFirestore.collection("users").document(user_id).get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() { @Overrid...
Myrtle asked April 19th 20 at 12:25
2
answers

How to put values from array into HashSet?

Write a test that checks that the rows of the array int [][] no number repeated. With this purpose I want to put string values in HashSet and compare the length of the string and resulting set. But the compiler does not want to accept an int, and Integer. Prompt how to be?
edmund24 asked April 19th 20 at 12:24
1
answer

As of the series make a return value?

Good day ! Write code for the game TIC/TAC toe at the moment trying to write a test win. The question arose. There is a method performs ( in this case vertical) as I from this method to return the alternate value, provided that the cycle should not stop checking. When I write return in a loop, it interrupts its action, whic...
jayce_Ankunding asked April 19th 20 at 12:23
1
answer

Where to find IntelliJ Platform Plugin?

Wanted with classmates to create a plugin for Intellij IDEA, but couldn't find Intellij Platform Plugin. Google did not help. Tell me where or how to install it?
elias_Kunze asked April 19th 20 at 12:17
1
answer

To list the contents of the main page by the method of httpURLConnection?

I have a mission: to Determine whether a site with the given address, if there is - to list the contents of the main page. To explicitly use the GET method. How to get the page with httpURLConnection method, or MB as that of the other. Thanks in advance!
Caden_Trant asked April 19th 20 at 12:17
2
answers

Java on the hardware level, the differences from C++?

Good day! Recently started to learn Java with the book "Java 8. Guide for beginners | Shildt Herbert", it says, and I quote: The Java language was conceived in 1991 by employees of Sun Microsystems by James Gosling, Patrick Naughton, Chris Worth, ed Frank and Mike Sheridan. It was originally called Oak, but in 1995, when ...
alysa66 asked April 19th 20 at 12:13
0
answer

As for Room to execute query with join and get everyone on POJO?

As for Room to execute query with join and get everyone on POJO? Table: Message(chat_id, message_id, user_id, date), Attachment(id chat_id, message_id, url, type) Message from composite key: chat_id, message_id. You need to collect from dB POJO MessageJSON ( chat_id: Int message_id: Int user_id: Int attachments: ArrayList )...
Cloyd asked April 19th 20 at 12:13
1
answer

How are primitives in Java?

Good day In the book I read that the default literal is int. By default, Java assumes you are defining an int value with a numeric literal. ie, short i = 5; 5 here - in fact it is int? That's why it compiles? byte a = (int)0L; but it is not? byte a = (long)0L;
Aida.Stokes asked April 19th 20 at 12:10
1
answer

Is it possible to create an anonymous class, if the class has no default constructor?

Is it possible to create an anonymous class, if the class has no default constructor? The answer is Yes, because in the anonymous class is not used a constructor, so the class has no name. Right?
Jillian_Boyle28 asked April 19th 20 at 12:10
1
answer

Consecutive units, why one solution works?

On Yandex.An interview is a simple task "B. sequential units". Link https://contest.yandex.ru/contest/8458/problems/B/ made two decisions in Java 8 The first passes all the tests on Yandex. public class Application { public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new Fil...
Deanna asked April 19th 20 at 12:08