Questions tagged [Java] (8047)

0
answer

Why Mockito can't find the method clearInvokations()?

In the tutorial use the method of Mockito.clearInvokations(), I have version 5.1 and there is no reason this method.. maybe he like something else is called? Please help, need to reset random
Camren.Hilll asked April 19th 20 at 12:46
1
answer

How to access songs from MP3Go?

MP3Go does it have any API?
onie_Sawayn asked April 19th 20 at 12:40
1
answer

Why when I deploy war to remote Tomcat error: Cannot invoke Tomcat manager: Connection reset by peer: socket write error?

Trying to deploy war using tomcat7:deploy on Tomcat. Do everything according to the instructions from the site https://mkyong.com/maven/how-to-deploy-maven-based... On the local computer all teplitsa to cheer. And on the remote server an error occurs: Cannot invoke Tomcat manager: Connection reset by peer: socket write er...
marquise.Dool asked April 19th 20 at 12:38
1
answer

How to account for dependencies in the Assembly jar file?

There are some project on Java with that build.gradle: plugins { id 'java' id 'application' id 'com.github.johnrengelman.shadow' version '2.0.1' } mainClassName = "Main" group 'org.q' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenCentral() jcenter() } dependencies { testCompile group: 'junit', ...
zachary asked April 19th 20 at 12:37
1
answer

How to create a matrix of this type?

Hi all, has anyone done such a task? Don't understand problem solving. How to generate such matrices?
otis asked April 19th 20 at 12:37
1
answer

How to make a line of ArrayDeque?

I have a structure ArrayDeque<Character>, and I want to translate it in place. If it were an array of chars I could do this: char[] chars = { 'A', 'B', 'C', 'D', 'E', 'F' }; StringFromChars String = String.valueOf(chars); // "ABCDEF" But if I do the same with ArrayDeque, it turns out garbage: String(String.valueOf(p...
sidney78 asked April 19th 20 at 12:30
1
answer

Error: Could not find or load main class in java how to fix?

Here is the code of the program import java.io.*; import java.util.Scanner; public class TimeCheck { public static void TimeCheck(String[] args) { //TimeCheck beta versions 0.0.0.1 System.out.print("TimeCheck-started"); // :) //enter quantity of day here, not below zero!!!!! int day = 1; // -------------- chas int...
daphney asked April 19th 20 at 12:30
1
answer

Why ArrayDeque cannot be created for Sagov?

Suppose I create an ArrayDeque of characters: ArrayDeque<char> pass_raw = new ArrayDeque<char>(); Or make the function receiving it: static public void stackUpper(ArrayDeque<char> pass) { if (pass.getLast() == 'A') { pass.addLast('B'); } else { pass.addLast('A'); } } But it's not working! IntelliJ do...
Leola_Jacobi asked April 19th 20 at 12:29
2
answers

The best option for the desktop?

Which of the two languages (Java/Python) desktop applications will work faster?
Dale_Breitenberg asked April 19th 20 at 12:28
1
answer

How to change pictures in multilingual app?

Need help in solving or advice on studying, in text or video material. There are multi lingual app, is translated into three languages, each translation is to be its image. That would make it clearer what I need, I will give an example for example take the application of the alphabet and each of the alphabets should be your...
austen.Luettgen asked April 19th 20 at 12:28