All Questions
1,450
questions
0
votes
1
answer
39
views
How to get Java console scan 2 strings separated by TAB key
I cannot type the TAB key into the console for 2 strings separated by the tab key, i used the split method but it didn't work. The Java console does not accept the TAB key.
Here's a snippet of my code
...
2
votes
1
answer
51
views
Password leak in MemoryDump from Java File which uses Java.io.Console
I got this code adapted from the official Java-Tutorial Page Console - Java Tutorial
public class RedirectOutputStreamExample {
public static void main(String[] args) throws InterruptedException {
...
2
votes
0
answers
62
views
Why is Console.readPassword() inserting a line?
I am creating a password manager, and I am using Console.readPassword() to enter passwords without it displaying on the screen. However, I have noticed some interesting behavior of this method. ...
0
votes
2
answers
50
views
Parallel string recognizion using Scanner and Thread in Java not working
For a personal project I am working on a way to recognize a String through a JOptionPane. Now my goal is to also have it recognized when I put it in the console as well and then close the JOptionPane. ...
0
votes
0
answers
173
views
How to display a prefix tree in the console?
I have a class like this:
public class TreeNode {
public String nodeName;
public List<TreeNode> clildren = new ArrayList<>();
TreeNode(String[] splittedTemplate) {
...
0
votes
0
answers
36
views
Issue with Console Input Delay in Java Program
I'm working on a Java program that takes user input from the console using BufferedReader for a command-line interface. However, I'm experiencing a noticeable delay when printing the prompt ">&...
0
votes
0
answers
21
views
Program won't run without print statement - Java [duplicate]
I was building an application to receive input from a specific port and then move the user's cursor in response. The program works just fine, so long as I don't delete the print statement. If I do, ...
3
votes
1
answer
106
views
Unicode not displaying properly in Gradle console
this is my very first question/post on here, because I am officially stuck. I am having difficulty displaying Unicode characters in Java/Gradle console. My project name is 'Blackjack'.
An example ...
1
vote
1
answer
48
views
Printing variable to console showing unexpected behavior
The following piece of code was an attempt to print the largest sum out of all the subarrays of the given ArrayList C, provided that the sum is not greater than the value given to a variable, B.
...
0
votes
0
answers
90
views
How can I press Tab key and Enter key on browser using browser's console?
I want to press 2 buttons on the website one by one (by console code) but the click code doesn't work on one of them.
So instead, I am trying to make console code that presses Tab key and Enter key ...
1
vote
0
answers
38
views
Python Script not Accurately Outputting to Console
I currently am creating a script to grade a file called Hangman.java. The Java file asks users to guess letters using the console. Usually, users would just enter their guess in console and everything ...
0
votes
1
answer
43
views
How to I derive CSS expression or an X-path for Google search bar?
I want to derive cssExpn or Xpath for google search bar and then use the element in java selenium program.
I tried below expressions on console but getting the length as 0 which means I cannot use ...
0
votes
1
answer
99
views
my vscode java version is different from my system java version
hi im having trouble in my vscode when i run my java file when im running the file it awlays shows
Error: Could not find or load main class main
Caused by: java.lang.ClassNotFoundException: main
PS C:\...
0
votes
1
answer
28
views
How to show the location of the code that invokes `System.out.print` when printing by configuring Eclipse console in java?
How to show the location of the code that invokes System.out.print when printing by configuring Eclipse console in java?
When I use console.log in Javascript in Vscode / Chrome, it always shows the ...
0
votes
0
answers
28
views
IntelliJ Plugin for PhpStorm: "WorkspaceFileIndex is not initialized yet" error during plugin execution
I'm developing an IntelliJ plugin for PhpStorm, and I'm encountering an error during the execution of my plugin. It occurs every time I run my plugin. Could someone help to resolve it?
The error ...