java

Is finally executed if in try return?

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

How do I convert from decimal to Roman?

Please tell me where to start what would translate from decimal to Roman and back? Here are my own 2 methods for example public static String decimal2Roman(int x) { ... } public static int roman2Decimal(String s) { ... }

Installing the Tomcat plugin in Eclipse

Good time of day. Downloaded and installed Tomcat 7.0.39 from the official website version 32-bit/64-bit Windows Service Inst ... plugins. I downloaded Tomcat just as a zip archive, but there is also no folder with the plugin. How do I install the plugin?

Functional interfaces and their implementation

Please tell me how to implement functional interfaces. I know two ways - implementing the class and implementing the methods And using lambda expressions. What others are there?

Should Entity classes implement Serializable

Looking at old videos and articles on Hibernate, I found that all the Entities in their examples implement the Serializable i ... and does not complain about anything. Well, do Entity classes need to implement this interface, or is it a relic of the past?

Java generics. What is the difference between wildcard() and parameterized types ()?

T is a type that is arbitrary and, when erased, is transformed into an Object-a superclass of all classes in Java. ? "is it ... T extends Number and ? extends Number? After all, if they were the same, then the meaning of enter them into the language...

Integer wrapper class

Why in all the examples, I see this:Integer a = new Integer(242); - although this option is depricated, in the idea it direct ... ger a = new Integer(242); from the second Integer a = 242;? Why do they write Integer a = new Integer(242); in all tutorials?

VIBER. How to get a link to an image

Tell me how to get a link to an image when sending an image to a user via a chat bot. According to the documentation, we cre ... ://www.images.com/img.jpg", "thumbnail":"http://www.images.com/thumb.jpg" } And where/how to get the link "media":"..."?

Calling a new method of an anonymous class

interface Lopzik{ void petrol(); } public class Test{ public static void main(String[] args) { Lopzik lopz ... the comments, without negative voices. If the content of the link gives an exhaustive answer, then I will delete my question.

Android-Code Optimization

Hello! I display a background that will scroll slowly (as in Parallax Scrolling), the size of the scrollable image is 16k+ by ... p and made drawing without anti-aliasing, FPS increased from 3 to 14 on Chinese devices. But optimization is still required.

The alphabet of the Java and Unicode programming languages

It seems to me that this question is more from the plane of philosophy, but it would still be nice to understand. So, I will ... I still not quite right and 1,114,112 characters are far from the truth? I am interested in your opinion on this issue! :)

Web application in Java + Javascript

The task is to write a web application in Java (backend) and html+css+javascript(frontend). Java is more than I know (the ser ... nd a detailed explanation would be by the way. And then all I came across was writing a java web application using jsp pages.

Regular expressions in GWT

Is it possible to work with regular expressions in GWT somehow? The java.util.regex package is not available. I have sketched ... sm for templates, do they use the same rules as java.util.regex or not? That is, will all my templates work exactly the same?

How to change Look and Feel (Swing)

I am writing a GUI application in Java Swing. I need to change the Look and Feel to non-standard, i.e. to FlatLaf. How do I d ... tQueue.invokeLater(new Runnable() { public void run() { new Home().setVisible(true); } }); }

Java program machine code

I need Get the machine code generated as a result of the entire path of my Java program in the form of a file, which you c ... puter through the JVM - in the form of a file, preferably txt, for proper opening in notepad in this Or in this View.

Overriding a static method in Java

You can't override static methods in Java. But why does the following code work: public class Runner { public static voi ... something in the method signature. But no, I didn't change anything. I can't put the "override" annotation above the method.

Menu button in android

Hello everyone. On a Nexus 5 smartphone, when you open some applications, another button is drawn to the right of the standar ... o implement it in the rest? I don't think I've ever seen anything like it. Usually the menu button is hung in the ActionBar.

Drag and drop on multiple div's

I'm making a task manager application in Java, and I decided to make it so that tasks can be dragged left and right. ... < ... he very first created one. How do I make it so that I can move each task? Thank you ( if something is just starting to learn)

How to Russify the Eclipse help

Can you tell me if it is possible to Russify the help and annotation to keywords in Eclipse? I can still understand the inter ... program, I think it would be useful to make an annotation in Russian ... If I learn English, I'll give up programming!:)))