Trending questions in Java

0 votes
1 answer

Reading data from excel , few cell values have double quotes. How to include the double quotes while reading

Hi, @Jyra, You can use one Java function ...READ MORE

May 7, 2020 in Java by Gitika
• 65,770 points
2,691 views
0 votes
1 answer

Error: 'android.os.NetworkOnMainThreadException'?

Hello, I solved this problem using a new Thread. Thread ...READ MORE

May 28, 2020 in Java by Niroj
• 82,840 points
1,761 views
0 votes
1 answer

Error:javax.net.ssl.SSLHandshakeException Error?

Hello @kartik, First, you need to obtain the ...READ MORE

May 21, 2020 in Java by Niroj
• 82,840 points
2,000 views
0 votes
1 answer

Error:Android SDK installation doesn't find JDK

Hii @kartik, It appears as if whoever posted ...READ MORE

May 25, 2020 in Java by Niroj
• 82,840 points
1,776 views
0 votes
2 answers

What is the difference between getAttribute() and getParameter() in java?

getParameter() returns http request parameters. Those passed from ...READ MORE

Aug 28, 2019 in Java by Sirajul
• 59,230 points
22,551 views
0 votes
1 answer

How can you catch an exception thrown by another thread in Java?

This can be done using Thread.UncaughtExceptionHandler. Here’s a simple ...READ MORE

Dec 3, 2018 in Java by Frankie
• 9,830 points
24,964 views
0 votes
1 answer

How to import android project as library and NOT compile it as apk?

Hello, In projLib's build.gradle file, you'll see a statement ...READ MORE

May 26, 2020 in Java by Niroj
• 82,840 points
1,622 views
0 votes
1 answer

How do I make a list with checkboxes in Java Swing?

Hii @kartik, Create a custom ListCellRenderer and asign it to ...READ MORE

May 8, 2020 in Java by Niroj
• 82,840 points
2,409 views
0 votes
0 answers

how to send a pdf file as a response to frontend?

when a user upload a file to ...READ MORE

Apr 11, 2020 in Java by Abhishek
• 120 points
3,393 views
0 votes
2 answers

How do I replace character from string at specific indexes?

You could turn the String into a ...READ MORE

Aug 22, 2019 in Java by Sirajul
• 59,230 points
23,774 views
0 votes
1 answer

How can one detect airplane mode on Android?

Hello, When registering the Airplane Mode BroadcastReceiver (@saxos answer) I ...READ MORE

May 26, 2020 in Java by Niroj
• 82,840 points
1,372 views
0 votes
0 answers

Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 63 path $.data

Here i am using retrofit post request:- RequestBody ...READ MORE

Apr 24, 2020 in Java by anonymous
• 120 points
2,686 views
0 votes
1 answer

How do I configure Maven for offline development?

Hello @kartik, You have two options for this: 1.) ...READ MORE

Jun 3, 2020 in Java by Niroj
• 82,840 points
800 views
0 votes
3 answers

Change date format in a Java string

The reason for the inaccuracy is because ...READ MORE

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

Can edureka has portals to teach ?

Hi, @Dhanush, Regarding your query, I would suggest you ...READ MORE

Jun 2, 2020 in Java by Gitika
• 65,770 points
767 views
0 votes
1 answer

How to Embed Gecko/WebKit in Java?

Hii, If SWT is an option, you can ...READ MORE

May 8, 2020 in Java by Niroj
• 82,840 points
1,845 views
0 votes
1 answer

How to set AUTO-SCROLLING of JTextArea in Java GUI?

Hii kartik, When you click anywhere over JTextArea, ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
2,468 views
0 votes
1 answer

How to use proper use cases for Android UserManager.isUserAGoat()?

Hello @kartik, From their source, the method used to ...READ MORE

May 25, 2020 in Java by Niroj
• 82,840 points
957 views
0 votes
1 answer

What is definition of an invalid literal?

Hi, @ Stephen, I will explain to you ...READ MORE

Apr 20, 2020 in Java by Gitika
• 65,770 points
2,397 views
0 votes
1 answer

How to make an Android device vibrate?

Hello @kartik, Try: import android.os.Vibrator; Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); // ...READ MORE

May 25, 2020 in Java by Niroj
• 82,840 points
639 views
0 votes
0 answers

I cannot build and sync my gradle in androidstudio.

how to build and sync my gradle ...READ MORE

May 8, 2020 in Java by Edureka
• 120 points
1,289 views
0 votes
1 answer

How to make JTable both AutoResize and horizontall scrollable?

Hello @kartik, If for some reason customising JTable ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
1,949 views
0 votes
1 answer

Write a method

Hey, @MIH, You can follow this: public class ReverseNumber ...READ MORE

Jun 5, 2020 in Java by Gitika
• 65,770 points
696 views
–1 vote
0 answers

Write a program that uses a while loop to read 10 integer numbers from file

Write a program that uses a while ...READ MORE

Apr 16, 2020 in Java by MIH
• 150 points
2,192 views
0 votes
1 answer

How to get the windows native look in Java GUI programming?

Hello Kartik,  You can try the syntax: UIManager.setLookAndFeel(PLAF); (Pluggable ...READ MORE

May 7, 2020 in Java by Niroj
• 82,840 points
1,119 views
0 votes
1 answer

How can I set JFrame to appear centered, regardless of monitor resolution?

Hello @kartik, Use setLocationRelativeTo(null) This method has a special effect ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
1,713 views
0 votes
1 answer

'javac' is not recognized as an internal or external command, operable program or batch file.

Hey @Paridhi, check this out https://www.edureka.co/community/4800/unable-resolve-error-recognized-internal-external-command This should solve ...READ MORE

Apr 20, 2020 in Java by Sirajul
• 59,230 points
1,793 views
0 votes
1 answer

How to call setUndecorated() after a frame is made visible?

Hello kartik, You can Try: dispose(); setUndecorated(true); setVisible(true); Check it Out. Hope ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
1,602 views
0 votes
1 answer

How to open warning/information/error dialog in swing?

Hello, You can try out : import javax.swing.JFrame; import javax.swing.JOptionPane; public ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
1,429 views
+1 vote
1 answer

How to get Alias name of AWS Lambda function from java code?

Hey @Abhishek, you could probably use the ...READ MORE

Apr 1, 2020 in Java by Sirajul
• 59,230 points
2,240 views
0 votes
1 answer

How to set JFrame to appear centered, regardless of monitor resolution?

Hello kartik, You can  always did it in ...READ MORE

May 7, 2020 in Java by Niroj
• 82,840 points
620 views
0 votes
1 answer

How to implement draggable tab using Java Swing?

Hello kartik, setAcceptor(TabAcceptor a_acceptor) should let the consumer code ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
1,286 views
0 votes
2 answers

What is immutable string in java?

To answer your question, the String is ...READ MORE

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

How to add tabs to JTabbedPane using WindowBuilder?

Hii, You can just find out by given ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
1,152 views
0 votes
1 answer

What are the different methods of session management in servlets?

Session is a conversational state between client ...READ MORE

Feb 18, 2019 in Java by Frankie
• 9,830 points
19,643 views
0 votes
1 answer

What Kind of Files IOC Container can Read other than XML directly or Indirectly?

Hi, @Ferry, The configuration metadata is nothing but bean ...READ MORE

Apr 23, 2020 in Java by Gitika
• 65,770 points
986 views
0 votes
1 answer

What is the reason for no ConcurrentHashSet against ConcurrentHashMap?

Hello, There's no built in type for ConcurrentHashSet because you ...READ MORE

Apr 8, 2020 in Java by Niroj
• 82,840 points
1,475 views
0 votes
1 answer

How to refresh a JTable model after insert delete or update the data

In my opinion, you can notify your ...READ MORE

Oct 11, 2018 in Java by code.reaper12
• 3,500 points
24,950 views
0 votes
2 answers

can i run two tomcat servers on the same linux VM machine?

Hello @Ganesh, To run and configure multiple instances ...READ MORE

Jul 30, 2020 in Java by Niroj
• 82,840 points
5,732 views
0 votes
1 answer

How can we activate JMX on my JVM for access with jconsole?

Hello @kartik, Run your java application with the ...READ MORE

Apr 9, 2020 in Java by Niroj
• 82,840 points
1,294 views
0 votes
0 answers

How to manage two JRadioButtons in java so that only one of them can be selected at a time?

How to manage two JRadioButtons in java ...READ MORE

Apr 21, 2020 in Java by kartik
• 37,520 points
682 views
0 votes
1 answer

Types of IOC containers in Spring Framework

There are basically two types of IOC ...READ MORE

Aug 28, 2018 in Java by misc.edu04
• 1,450 points
26,624 views
0 votes
1 answer

How could I implement autocompletion using Swing?

Hello, You can try out this: import java.awt.*; import java.awt.event.*; import ...READ MORE

Apr 21, 2020 in Java by Niroj
• 82,840 points
551 views
0 votes
1 answer

Error:“java.lang.OutOfMemoryError: Java heap space” ?

Hii, Possible causes: Simple configuration issue, where the specified ...READ MORE

Apr 8, 2020 in Java by Niroj
• 82,840 points
1,112 views
0 votes
1 answer

Which is faster amongst an Array and an ArrayList?

Array Over List: The capacity of an Array is fixed.  Whereas ArrayList can ...READ MORE

Jul 20, 2018 in Java by sophia
• 1,400 points
28,245 views
0 votes
2 answers

How do i create generic array in Java

as first tip you cannot assign value ...READ MORE

Feb 13, 2020 in Java by sama
17,225 views
0 votes
1 answer

How to run a Java program from the command line on Windows?

Hello @kartik, In case your Java class is ...READ MORE

Apr 9, 2020 in Java by Niroj
• 82,840 points
989 views
0 votes
1 answer

java path not found in window 7

Hey, You can follow these few steps: From the ...READ MORE

Apr 3, 2020 in Java by Gitika
• 65,770 points
1,223 views