Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and run-time environment (JRE). Java programs are compiled to byte-code and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

learn more… | top users | synonyms (6) | java jobs

0
votes
0answers
3 views

Porting AES Java decipher code to Node.js

I've got the following Java code that I'd like to port to Node.js: // Java byte[] rawKey = "s0m3k3y".getBytes("us-ascii"); SecretKeySpec skeySpec = new SecretKeySpec(rawKey, "AES"); Cipher cip = ...
0
votes
0answers
4 views

Python subprocess check_output

here is my problem: command_words = re.sub("[^\w-]", " ", "npm -version").split() subprocess.check_output(command_words, shell=True) command_words = re.sub("[^\w-]", " ", "java ...
0
votes
0answers
13 views

circular shift queue to randomly access a items

guys. I am been debugging this for 4 hours, really seriously stuck, no clue where goes wrong. I want to write a class to randomly callout a number in a collection(data structure optional) I tried to ...
0
votes
0answers
10 views

Java: How to retrieve client's IP and PORT on the server socket end?

I have a socket listener java based running on the desktop end and I have a mobile client, which is able to connect with this socket server without any issues. I want to have the socket connection ...
0
votes
0answers
9 views

Passing local variables into JTextbox

I am working on a programming challenge in Java, I have created a GUI with 3 boxes to enter numbers into, A, B, and C, I then have an Order of operations box where a user enters A,B,C, and whatever ...
-4
votes
0answers
13 views

How Can we pick muliple mobile number in edittext in android [on hold]

How Can we pick muliple mobile number in edittext in android help me
0
votes
0answers
4 views

Maven won't deploy to tomcat; gives '405' error

I'm trying to deploy a simple JSF app onto a Tomcat 8 server on my local machine. When I run mvn tomcat:deploy, I get the following feedback: C:\_workspace\portfolio>mvn tomcat:deploy [INFO] ...
0
votes
0answers
10 views

JAVA mvc Adding to current Shopping Cart

The code is generally working, but I'm facing the issue of adding more or subsequent products (DVD) to cart. When the cart is empty, I'm able to add an product to cart. But after that, products cannot ...
1
vote
1answer
5 views

Spring transaction isolation not working

I'm making a very simple example to test Spring isolation. I have 2 very similar Schedule classes: @Service("manager1") public class Manager1 { private Service1 service1; ...
0
votes
0answers
4 views

TextUtils.join return incorrect result in android

I have a problem when I try to join multiple words by using TextUtils.join with delimiter. When I wrote TextUtils.join(";", arraylist object); It will show result as [array1, array2, array3] which ...
0
votes
0answers
3 views

Why the textchangelistener is slow?

I'm looking for a solution for my problem. I created a class that customize a TextField and I'm using TextChangeListener to change the value of field. Every number that user enter the change(format) ...
0
votes
0answers
13 views

Normalizing array method java

I'm not sure how to normalize the values to get the output that I want. I created a method called normalize. The values come from my txt file. The output I want is - Quizzes: 66% Labs: 88% Lab ...
0
votes
0answers
9 views

New to Android - Fragments

New to android programming. For the past 3 days I've been going through tutorials and feel like I get the major parts of it. Every time I try to run the following code, android causes it to force quit ...
0
votes
1answer
30 views

Create a Chess Board in Java

I did till this however it is not showing any output. import acm.program.*; import acm.graphics.*; import java.awt.*; public class Test5 extends GraphicsProgram { public void run() { GRect ...
0
votes
0answers
4 views

Transferring data from servlet to jsp page

I would like to get rid of the printWriter code in the servlet. Basically I want to output the current customers and their respective cities with the id which is a hidden field on the index page. ...

15 30 50 per page