English

Reading from files character-by-character into a JAVA array

You need to read from the file character-by-character into the array and in the future so that you can process the elements of the array( search for So_to_The element and its removal from the array, but this is not the main thing)

Tilted block with javascript text

I need to put the text in such a block that it is located at an angle. I Googled that this can only be done through js, who c ... ne knows how to do without js, feel free to suggest. I accept any information on the topic, do not hesitate. Thank You All!

The difference in the speed of calculating trigonometric functions in Java and C#

I am studying Java and became interested in the work of the method sin (cos). I noticed that the rate of getting the sine on ... } sw.Stop(); Console.WriteLine(x +" - " +(sw.ElapsedMilliseconds).ToString()); } }

How to write a DAO correctly?

Hello, I would like to learn how to write database access professionally. I saw such instructions on the Internet. 1.Write a ... lly on an interesting article Do not repeat DAO!, but there it is mixed with spring, although I like the idea of generic dao!

How to launch a Java Web Start application by clicking on a regular button?

I want to launch a javaws application without a "special" button with the word "Launch" , but just by clicking, for example, ... ; <script> var url = "someJnlpFile.jnlp"; deployJava.createWebStartLaunchButton(url, '1.6.0'); </script>

java: how do I know how much memory a program uses?

There is a task: to write a small program that runs from the command line, reads data from a file, calculates the result (the ... sed should not exceed 16 MB. Please tell me how you can determine how much memory the program uses? Windows, IntelliJIdea.

PHP interaction with jQuery (and JavaScript)

Good afternoon! I started studying web programming relatively recently. During this time, I managed to learn quite well PHP, ... language, explain how to link the jQuery framework or even just pure JavaScript with PHP. I will be grateful for the answer.

running the jar from the command line

How to launch a java application. jar file from the command line. It is already there, you need to run it. do not compile and run the source file (javac and java), but run the finished file (application) jar

What is the difference between var a and var $a in javascript?

Good afternoon! More and more often in js scripts I encounter variable declarations using the dollar sign, i.e. instead of a ... n them. It's just for convenience is it being done, or does it provide something additional from a functional point of view?

The => operator in JavaScript

I study JavaScript, in Wikipedia I met an example of describing multidimensional arrays The code is as follows: // Создание ... avaScript. Detailed guide", this operator is not found in the text, and I could not find a description on the network either.

Java Memory Model and happens-before

Good afternoon. There is a small question about JMM. I know how happens-before works, but I can't understand one point. Here ... out.println(x); }).start(); x = 5; flag = true; } What value should X take? If there is some rule to determine this?

Javascript up/down button

Good afternoon. Tell me how to implement a button on the site, when you click on it, the scroll on the site will go down, and ... page there is a button "More about the company" ) I tried using toggleClass, but it didn't work, maybe I was doing it wrong.

Differences between extend and super in Generics

For example, the following code: public void add(List<? super Number> list) { list.add(1D); // можно list.add( ... r". And it works the other way around: "any type is the heir of Number". What's wrong? Why does it work the other way around?

How to correctly multiply a matrix by another matrix in multiple threads?

My task is this. I need to multiply a 200x248 matrix by a 248x333 matrix in parallel on 8 threads. On the internet, I found a ... c[i][j] = c[i][j] + a[i][l] * b[l][j]; } } } } }

Where to download JRE 11

I downloaded a fresh JDK 11 yesterday and installed it, but an error occurs. Error: A JNI error has occurred, please che ... ighth version. Don't beat me just for this question, I'm trying to learn, and yesterday 11 Java came out so I downloaded it.

How do I insert a double quote character in a string?

Example: String str1 = "Строка со "словом" в кавычках"; How do I insert the quotation mark character (") correctly?

What is more correct than Java Generic Interface and Generic Methods in this case?

This issue arose because of the PDF... discussions with a colleague about what is preferable. There is a code that can be wri ... d, 2. in each class where it is used, the interface / method works with only one type, 3. use both options in principle may.

Is finally executed if in try return?

try { ... return qwe; } catch {...} finally {...} Is finally satisfied if try has return?

Calculate the time when the javascript paintwork is clamped

Good evening. The task is as follows: press the left mouse button and, when pressed, display how many seconds it was clamped. Is it possible to do this in JavaScript?

Check for a CSS class in javascript

How do I check whether an element has a class or not in pure javascript? You need to add a class to the element on click, bu ... stener('click', selectDate); } function selectDate(){ this.className += ' active'; } Link to the full code jsfiddle