menu

Recent questions tagged java

1 vote
2 answers
image
How can I display letters in figures without knowing cycles? Reading Jacob Fine's book, Programming in java for children of grandparents' parents, I got a little perplexed. In the book, the author gives the task on page 39 to dra ...
by PRAIT
asked Sep 24, 2021
1 vote
1 answer
How do I read a file from a classpath? Hello to the reader! I need help getting the file from the classpath. The file is specified in the -cp option while running the jar through the console. Running the ...
by ProtCN
asked Sep 24, 2021
1 vote
1 answer
Which Java core project should I choose? Hello. I can't think of a project for my portfolio. It has to be complex, but still within the Java Core. Can you give me some advice? As for the level of complexity - t ...
by BurgerLover
asked Sep 24, 2021
2 votes
3 answers
Is it possible to run Java in a browser in 2021? There is a network equipment (IPKVM) with access via java. What to do with it? Are there any working methods? I'm on the mac myself, but it's not a big deal. ...
by 776166
asked Sep 24, 2021
1 vote
1 answer
image
How to align an empty triangle? Hi, the task is to draw an empty triangle. Here's what he wrote public class Test { public static void main(String args) { int count = 12; for (int ...
by PRAIT
asked Sep 23, 2021
1 vote
1 answer
image
Why doesn't the webview link open? There are two buttons in the application, when you click on them two different links open. One link to the login page opens normally and referral link does not want to o ...
by Chesterfield25
asked Sep 23, 2021
1 vote
1 answer
3D graphics in Java. What program/engine to use? I've been creating programs (mostly games) in Java for quite a long time. I used to make only games with 2D graphics and I want to try myself in 3D, but I can't find goo ...
by IAmNoob
asked Sep 23, 2021
2 votes
1 answer
How to organize orchestration between microservices in Docker? Hello, dear forum users. I had a problem, but I do not know how to solve it. Here is the gist: Several microservices in docker containers, one of which is a spring boot. ...
by BlackSunshine-manage
asked Sep 22, 2021
1 vote
4 answers
Why doesn't it print and show red in Java? Just starting to learn Java package com.company;public class Main { public static void main(String args) { class Square { Square(int i) { ...
by Xenooon
asked Sep 22, 2021
1 vote
1 answer
How do I output odd numbers from 0 to 20 using FOR? You need to write a program that outputs odd numbers from 0 to 20 using only the for loop. public class TestClass { public static void main(String args) { ...
by PRAIT
asked Sep 22, 2021
1 vote
1 answer
How can I print in the console the name of the method in which the exception was thrown? With printStackTrace, the entire call stack is output. But how can I print to the console only the name of the method in which the exception was thrown? ...
by Koshkasobaka
asked Sep 22, 2021
2 votes
2 answers
How to convert docx (and some other text formats) to pdf in Android Studio Java? Writing Reader He already knows how: -Open and view PDF files Must learn: -Open and view dosx, rtf, epub, txt (or convert them to pdf and read pdf) How can I imp ...
by nikita071003
asked Sep 21, 2021
1 vote
2 answers
I implemented RecyclerView, but the onCreateViewHolder method doesn't even get to the point! What could be the reason for this? Hello, dear programmers! The problem is this: I implemented recyclerView, but not a single item appeared on the screen, although it should, the data for this were (They ...
by Olaf-06
asked Sep 21, 2021
0 votes
1 answer
image
Hello all doing an application in JavaFX and can not connect the library, what am I doing wrong? These are the dependencies I added to pom Here is the application launch class import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scen ...
by mykostyaa
asked Sep 20, 2021
1 vote
1 answer
How can I make it faster? I have an Array of 500 records, and a file with 1,000,000 such records. I don't need to put duplicates in the file. I can read all the records from the file into the H ...
by miha5418
asked Sep 20, 2021
1 vote
1 answer
How do I set the action after authorization? I am doing a project on Servlets. Suppose the user added something to the cart, and the server checks if he is authorized, and if not, it sends to the authorization page ...
by i_rustem
asked Sep 20, 2021
1 vote
3 answers
How get values from HttpsUrlConnection? Karoch, I send a query to YouTube, I get a bunch of strings, how to get from these strings that I need? Nowhere found the answer, who knows? URL url = new URL(texturl. ...
by LSP55
asked Sep 20, 2021
1 vote
1 answer
How do I redo the java loop code? package test;public class Test { public static void main(String args) { int count = 10; int i = 0; while (i < count) { int k = 0; ...
by PRAIT
asked Sep 20, 2021
2 votes
2 answers
How do I create a multiplication table from 1 to 10 using the for loop? Okay. I started learning java two weeks ago. And so what seems intuitive to you may seem very confusing to me. So I'm asking you to help me. I need to write code that wi ...
by ZymBo
asked Sep 20, 2021