Trending questions in Java

0 votes
0 answers

What is the difference between ' and " in JavaScript?

When creating strings in JavaScript, the character'or ...READ MORE

Sep 28, 2022 in Java by Nicholas
• 7,760 points
365 views
0 votes
1 answer

Error: Could not find or load main class org.testng.remote.RemoteTestNG

This worked for me: Right click on your ...READ MORE

Feb 16, 2022 in Java by Aditya
• 7,680 points
9,956 views
0 votes
0 answers

How to convert a string to an integer in JavaScript?

In JavaScript, how do I convert a ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
580 views
0 votes
0 answers

What is lexical scope?

What is a quick overview of lexical ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
580 views
0 votes
0 answers

Javascript call() & apply() vs bind()?

I'm already aware that apply and calls are functions that do the same thing (context of a function). The distinction is in how we communicate the arguments (manual vs array). When should I, however, utilize the bind() method? var obj = { x: ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
575 views
0 votes
0 answers

How can I remove a specific item from an array?

How do I get rid of a specific value from an array?  As an example: array.remove(value); // removes all elements with ...READ MORE

Sep 21, 2022 in Java by Nicholas
• 7,760 points
594 views
0 votes
0 answers

What does [object Object] mean? (JavaScript)

One of my notifications had the follo ...READ MORE

Sep 22, 2022 in Java by Nicholas
• 7,760 points
502 views
0 votes
0 answers

Convert Array to Object

What is the best way to convert: ['a','b','c'] to: { ...READ MORE

Sep 20, 2022 in Java by Nicholas
• 7,760 points
592 views
0 votes
0 answers

Javascript require() function giving ReferenceError: require is not defined

Essentially, I'm using javascript to scrape data from the Google Play store by: 1-Request 2-Cheerios 3-QueryString I used Google Market API from Github ...READ MORE

Sep 21, 2022 in Java by Nicholas
• 7,760 points
542 views
0 votes
0 answers

For-each over an array in JavaScript

How can I use JavaScript to loop ...READ MORE

Sep 21, 2022 in Java by Nicholas
• 7,760 points
535 views
0 votes
0 answers

What does "javascript:void(0)" mean?

<a href="javascript:void(0)" id="loginlink">login</a> ...READ MORE

Sep 20, 2022 in Java by Nicholas
• 7,760 points
564 views
0 votes
0 answers

How to check whether a string contains a substring in JavaScript?

There doesn't seem to be a String.contains() ...READ MORE

Sep 21, 2022 in Java by Nicholas
• 7,760 points
503 views
0 votes
0 answers

Why does my JavaScript code receive a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, while Postman does not?

I'm attempting to provide authorisation using JavaScript by connecting to the RESTful API integrated into Flask.  However, when I make the request, I receive the following error: XMLHttpRequest cannot load http://myApiUrl/login. No 'Access-Control-Allow-Origin' header ...READ MORE

Sep 20, 2022 in Java by Nicholas
• 7,760 points
510 views
0 votes
0 answers

How do I format a date in JavaScript?

How can I convert a Date object ...READ MORE

Sep 21, 2022 in Java by Nicholas
• 7,760 points
462 views
0 votes
0 answers

window.location.href and window.open () methods in JavaScript

What is the difference between window.location.href and ...READ MORE

Sep 20, 2022 in Java by Nicholas
• 7,760 points
495 views
0 votes
0 answers

How can I validate an email address in JavaScript?

To avoid the most basic mistyping, I'd ...READ MORE

Sep 20, 2022 in Java by Nicholas
• 7,760 points
438 views
0 votes
0 answers

CreateProcess error=2, The system cannot find the file specified

I have written a java program to ...READ MORE

May 5, 2022 in Java by Kichu
• 19,040 points
6,396 views
0 votes
0 answers

How to declare an array of different data types

In Java, I am working with arrays, ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
2,233 views
0 votes
1 answer

jQuery.click() vs onClick

So, using a string that is tied ...READ MORE

May 30, 2022 in Java by gaurav
• 23,260 points
4,958 views
0 votes
1 answer

What are the -Xms and -Xmx parameters when starting JVM?

The XMX parameter helps in signifying and ...READ MORE

Feb 8, 2022 in Java by Soham
• 9,710 points
9,585 views
0 votes
1 answer

Cannot open local file - Chrome: Not allowed to load local resource

To answer your query, start with opening ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
8,977 views
0 votes
0 answers

Exception in thread "main" java.lang.Error: Unresolved compilation problems

I am facing issues importing classes and ...READ MORE

May 7, 2022 in Java by narikkadan
• 63,600 points
5,535 views
0 votes
1 answer

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”

I had the same issue with WebSphere ...READ MORE

Dec 30, 2020 in Java by Gitika
• 65,770 points
26,723 views
0 votes
0 answers

Copy several byte arrays to one big byte array

I have several little byte arrays and ...READ MORE

Aug 18, 2022 in Java by krishna
• 2,820 points
886 views
0 votes
1 answer

nodemon command is not recognized in terminal for node js server

You need to install it globally npm install ...READ MORE

Feb 17, 2022 in Java by Aditya
• 7,680 points
8,677 views
0 votes
0 answers

How are arrays implemented in java?

In Java, arrays are implemented as objects, ...READ MORE

Aug 18, 2022 in Java by krishna
• 2,820 points
598 views
0 votes
0 answers

Sort arrays of primitive types in descending order

I got a huge array of double ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
1,011 views
0 votes
0 answers

How do I fill arrays in Java?

Is there a proper way to fill ...READ MORE

Aug 12, 2022 in Java by krishna
• 2,820 points
575 views
0 votes
0 answers

Returning arrays in Java

I am trying to return an array ...READ MORE

Aug 11, 2022 in Java by krishna
• 2,820 points
553 views
0 votes
0 answers

Where is Java's Array indexOf?

I am not able to find it. ...READ MORE

Aug 12, 2022 in Java by krishna
• 2,820 points
499 views
0 votes
2 answers

Unable to find valid certification path to requested target

Unfortunately - it could be many things ...READ MORE

Dec 15, 2020 in Java by Roshni
• 10,480 points
42,373 views
0 votes
0 answers

How do I declare and initialize an array in Java?

How can I declare and initialize an ...READ MORE

Aug 11, 2022 in Java by krishna
• 2,820 points
453 views
0 votes
0 answers

Where is array's length property defined?

As you know, to determine the length ...READ MORE

Aug 12, 2022 in Java by krishna
• 2,820 points
364 views
0 votes
0 answers

Matrix multiplication using arrays

Utilizing multidimensional arrays, I'm attempting to create ...READ MORE

Aug 5, 2022 in Java by krishna
• 2,820 points
633 views
0 votes
0 answers

What is the difference between List.of and Arrays.asList?

In java 9, new factory methods for ...READ MORE

Aug 2, 2022 in Java by krishna
• 2,820 points
740 views
0 votes
0 answers

Difference between Arrays.asList(array) and new ArrayList<Integer>(Arrays.asList(array))

What's the difference in these two ways? List<Integer> ...READ MORE

Aug 5, 2022 in Java by krishna
• 2,820 points
603 views
0 votes
2 answers

Android Studio Gradle project “Unable to start the daemon process /initialization of VM”

In IONIC Go To > Platform > Android >Cordova ...READ MORE

Dec 16, 2020 in Java by Shahzaib
30,705 views
0 votes
0 answers

Arrays of different types

Is it possible to have an array ...READ MORE

Aug 8, 2022 in Java by krishna
• 2,820 points
459 views
0 votes
0 answers

Multidimensional Arrays lengths in Java

How can I determine the lengths of ...READ MORE

Aug 8, 2022 in Java by krishna
• 2,820 points
430 views
0 votes
0 answers

Benefits of arrays

The benefits of a list over an ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
630 views
0 votes
1 answer

java.lang.classnotfoundexception: com.mysql.jdbc.driver

I assume that your mysql connectivity library ...READ MORE

Feb 8, 2022 in Java by Soham
• 9,710 points
8,173 views
0 votes
0 answers

What does it mean that Java arrays are homogeneous, but ArrayLists are not?

If I got a Type[] array, I ...READ MORE

Aug 1, 2022 in Java by krishna
• 2,820 points
591 views
0 votes
1 answer

No compiler is provided in this environment. perhaps you are running on a jre rather than a jdk?

Once you are on your Eclipse integrated ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,680 points
8,061 views
0 votes
0 answers

Why does Java's Arrays.sort method use two different sorting algorithms for different types?

The array.sort method in Java 6 makes ...READ MORE

Aug 3, 2022 in Java by krishna
• 2,820 points
490 views
0 votes
1 answer

Get selected text from a drop-down list (select box) using jQuery

Select elements typically have two values that ...READ MORE

May 30, 2022 in Java by gaurav
• 23,260 points
3,215 views
0 votes
0 answers

Server Tomcat v9.0 Server at localhost failed to start

I am using Tomcat server v9.0 but ...READ MORE

May 23, 2022 in Java by Kichu
• 19,040 points
3,456 views
0 votes
0 answers

resource : Invocation of init method failed

I am getting this error when I ...READ MORE

May 16, 2022 in Java by Kichu
• 19,040 points
3,328 views
0 votes
0 answers

Java 11 JDK for Windows 7 32-bit system

I wanted to install Java 11 on ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
4,334 views
0 votes
0 answers

Error: The processing instruction target matching "[xX][mM][lL]" is not allowed

An error occurs when I run I ...READ MORE

May 23, 2022 in Java by Kichu
• 19,040 points
2,959 views
0 votes
0 answers

Clickable span not calling javascript even though w3school example works

I have a clickable span element that ...READ MORE

Apr 13, 2022 in Java by Rahul
• 3,380 points
4,376 views