English

Java GUI

How is the GUI implemented in Java? Is it only via javax.swing?

Initializing an array in JavaScript

Hello. When I create an array var thingsv = new Array(length) I don't have the option to initialize it with the initial valu ... no (I did not find it). We have to run through the array in a loop and fill it in. Isn't there a more convenient way? Thanks.

Function graph in JavaScript

You need to use JavaScript to plot the function y = х^2 + (е^2x)/(х-2) where e is the exponent (in power 2*x), x = -5 and in ... o up to 1). I ask for help, or at least a link to a resource that explains how this can be done. Thanks for your attention.

How do I convert a date from the yyyy-mm-dd format to the standard format?

There is a date of the form "2015-05-15". How do I make a date like "May 15, 2015"out of it?

What is the difference between Comparable and Comparator?

When to use Comparable and when to use Comparator?

Remove all characters from the string except letters and numbers in Java

Help! I can't remove all characters from the string except letters and numbers. In the beginning, I have a static method for ... r(self, ch); } } System.out.println("Количество других символов: " + n); System.out.println( self ); }

How do I run javac from cmd to correctly display Cyrillic characters in the file name when displaying compilation results?

Compiling a java file with a Cyrillic name from the command line. When errors are output, hieroglyphs are output. How can it be solved?

Comparing objects with the = = operator in Java. Integer vs int

To compare objects in Java, the equals() method is used, but what if two wrapper objects for primitive types are compared: I ... .println(a==b); // true System.out.println(c==d); // false Why is true returned in the first case, and false in the second?

The order of method calls in Java

The output to the console in this case is FileNotFoundException. How exactly is the selection of the desired method to call p ... } public static void main(String[] args) { Overload test = new Overload(); test.method(null); } }

How do I / O streams store information?

Please explain why when you type in the console, say, the letter ' t ' and the subsequent outputs System.in.read() and new Bu ... the first byte of a two-byte record ‘t’), and the character BufferedReader outputs everything correctly. What's the matter?

Java livelock example

What does the livelock look like in the code ? On the Internet, there are only examples of life where people meet in the corridor.

Convert json to java class

How do I convert such a json to a Java class using GSON ? { "type": "success", "value": { "id": 61, "joke": "Chuck Norris o ... cake before his friends could tell him there was a stripper in it.", "categories": [] } } What will this class look like ?

Java does not import the JavaFX library

After automatically creating the JavaFX application project in Intellij IDEA, the Java compiler outputs the following message ... ackage on JDK c and the JavaFX command apt install openjfx-* installed, but the output did not change. What am I doing wrong?

How to add a line break to a String

Please tell me how I can write such a string in String La-la-la la-la-la La-la-la la-la-la String s1="Ля-ля-ля ля-ля-ля"+"Ля-ля-ля ля-ля-ля"; NeatBeans only offers string concatenation. And how to still write with a line break in mind.

Scala with Android - does anyone have any experience?

Au? Does anyone have any experience with Scala in Android? I like the syntax a lot, but in fact it's still the same inside, like Java - so it's probably suitable for Android

How do I use javascript to press keyboard buttons? (similar to HTMLElement. click () on the mouse)

How can I use javascript to press the keyboard buttons? For the left mouse button, for example: HTMLElement.click() We need an analog for the keyboard. And so that you can run it through the devtool developer tool. P.S. nothing is impossible!

Is it possible to kill GC in JAVA

I was doing an interview and the interviewer asked if it was possible to kill GC in Java. To the additional question of wheth ... it. The interviewer said that it is possible and what you need to Google, I did not find anything in Google, please tell me.

How to work with Roman numbers in java

Hello everyone There is a task: write a calculator The calculator can work with Arabic and Roman numbers must accept number ... } else { System.out.println("error!"); } } } Question: How can I do the same with Roman numbers?

Looking for documentation on Angular 2 JavaScript

I'm looking for documentation on Angular 2 JavaScript (not TypeScript). Does anyone have such a resource at hand? Please share it.

Converting from hexadecimal to decimal java

I don't understand how the number is translated in this example. I mean, I don't understand the last step... We take a charac ... ); i++) { char c = s.charAt(i); int d = digits.indexOf(c); val = 16*val + d; } return val; }