Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

CONVERTING A STRING TO DOUBLE

Converting a String to Double Write a program to read the input amount as a string and parse it to Double using the 'valueOf/parseDouble' method.   Strictly adhere to the Object-Oriented specifications given in the problem sta...

How to subtract two column of different table using sql query

I Have 2 tables WIthdrawMaterial and DepositMaterial,Both In WithdrawMaterial contain quantity column, and DepositMaterial contain totalDeposit ,I want to perform subtraction between quantity and totalDeposit column using query and store the resu...

How to solve ArrayIndexOutOfBoundsException in Java?

I want to insert a csv data into a MySQL table. When I run the code, I've got the following error message. Any suggestions? java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3     at BudgetTrackerCu...

Java code error: One curly brace is missing

Following is my code-  import java.util.Scanner; public class Sample { public static void main (String [] args){ Scanner myObj = new Scanner (System.in); System.out.println(Hello.Do you want to check your cuteness percentage...

How to resolve casting error in my Java program

I am trying to get data from a database using 3 Jcomboboxes and then put the data in a Jtable and i am getting a empID=(int)employees[selectedIndex-1][1];  public void updateTable() { int selectedIndex=employeeCmb.getSelectedInd...

Dequeue remove from the tail using node

hey there! whenever i run my program it works well but when im at removeTail() it crashes at last value,it works to delete from the back when im at the last value it crashes,any help? hope it makes sense. import java.util.Scanner; public ...

R2dbc Rest Api relation problem

Hi everyone, I am write simple project in Webflux Rest api not problem the response. My problem is that the code is working, but the response is wrong, so for example the label has 3 but 6 returns, the projects are repeated, I don't und...

Bubble Sort Problem- Number of Passes

Write a Bubble Sort program that sorts the given input array in descending order and prints the number of swaps made after m passes in the algorithm.  Sample Input 1:  2  4 1 2 3 4 Sampl...

java

Assume the central government wants to develop a GUI application to survey and estimate the awareness of the schemes among the people of India and promote the scheme which is least popular. Construct a GUI to get the Aadhar card number from the ...

How do I display the number of clients that placed an order for a particular product?

I'm a beginner in java and I want to display the number of clients that placed an order for a particular product on my MVC WebApp. I came up with a logical way of doing this but I stumbled upon a dead end. Here's what I tried to do. An...

How to make these 2 rectangles collide and BOUNCE back

For the code below I managed to make these rectangles collide and bound at the Jpanel border, but why is that these rectangles do not bound each other when they collide, instead they overlapped each other? I think there is a problem in my action...

JAVA program to calculate compound interest annually, semi-annually, quarterly, monthly and daily

problem : a Java program interest.class that calculates the total interest income on amount Taka 5 Lakhs in a period of 10 years. Show the results for simple interest, compounded interest when the compounding is done annually, semi-annually,...

How to set flag value in config.properties file and fetch the flag value in java class

I want to set flag value (0===AD login,1===nomad login,2 both way)in properties file of my spring project and in login.java file  how to set flag value from properties file as If flag value is set in properties file as 1 then authenticate...

Request for solving the following problem in Java

Given a list of Strings (that contains both palindromes and nonpalindromes), write a method that returns a list of all the palindrome strings. TIP: Use static method references of Functional Interfaces  

How to write the following Java Program

design and implement the following structure for your organization. You must follow the instructions given below 1 – Name of you organization is your surname. For example, if your name is “john wicki”, then “wicki”...

How to build a semi-fat jar using maven in JAVA

For my project, I have used the below configuration to generate the thin jar   <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configurat...

find the largest palindrome made from the product of 3 digit numbers java

Can some one please explain what is done in the following code. I found it in in Stack overflow.  I asked the question in the same web site and got the following reply Stackoverflow isn't meant for the purpose of explaining code . Sin...

Java Check whether username already exists or not

I am having a file called customersinfo.txt this is how my file structure looks like ID FirstName LastName Email Mobile UserName PassWord ConPassWord 1 John Sam JS@gmail.com 0123 JhonSam12 1234 1234 2 ---- ------ ----------- ---- ----- ------ ...

How to Parse json Using Java to Get Desired Output

I am new to java development. I am learning JSON parsing. I got JSON response something like this.     1 "sizePrices": [ { "cargoHandoverPrice": 0.00, &q...

How to Group Json Response with Keys in Java

 I am new to java development. I am learning JSON parsing. I got JSON response something like this.     1 "sizePrices": [ { "cargoHandoverPrice": 0.00, "sizeC...

How to Set Previous Title of a Fragment When Back Pressed in Java?

I have created a activity in which I placed a fragment and inside fragment I have used a card view. when I click on card view it moves to next fragment and set title of card view to next fragment toolbar. The problem is when I press back button...

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured in ...

I got failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured in spring boot   I am working on spring boot import batch processing with gradle, YML properties file, but ...

How to Insert an Excel Table into Oracle Database

        Am trying to insert am excel table into oracle database and when i try i get issuesmy table to the database doesnt get formatted correct                     ...

How to Use Class For Sending Notification In Android?

I wanna create a library for sending a notification to my android app but i don't know how it works and what kind of data I should give to the function in the class. this is my code for sending a notification but I don't know how to put i...

How to Convert Json String to Json Object Containing XML

I want to convert json string to json object. I am using the following method.   public List<BusinessProcess> convertJsonToObject(String json)             throws JsonParseException, J...

How to Implemented Bulk Read from CouchBase in Java Code

I have written a code in Java to read multiple documents in bulk from a Bucket in CouchBase. I have made it functional somehow, but I don't understand how it works.    I'm making my project on NetBeans IDE. I copied this c...

How to Translate a C# Code into Java Language?

I need to translate this c# code into java, please     string sourceAddress = @"input.txt";   string astAddress = @"AddressSymbolTable.txt";   firstPass(sou...

How to Write a Two Pass Assembler Code in JAVA

I need a two-pass assembler code in java that takes input as assembly language code from text file and convert it to binary code according to the two flow charts in morris mano book Computer System Architecture.

How to Resolve Invoation Target Exception Error in JAVA

public class MainGUI extends Application {          public void start(Stage primaryStage) {                  class deck {      &nbs...

How to Code an Algorithm to Calculate Maximum Product of Any n-1 Elements

How to code an algorithm to calculate the maximum product of any n-1 elements in the array in O(n) time complexity for only positive integers?

Complex Software Algorithm Problem (Java/C#)

Hi,   Can someone please assist in solving the attached complex software algorithm problem as attached (using Java or C#)   Thank you in advance

Can Anyone Explain the Output of This Program

import java.util.*; public class Input {     public static void main(String[] args) {         Scanner s=new Scanner(System.in);         System.out.println("Ente...

Encryption and Decryption Code Transposition Algorithm in JAVA

I need to make some simple edits on trans-position encryption and decryption code, anyone interested please say

Threadpool inside normal Java Thread

Can i have executor service inside a normal Java Thread?

Accounting for Unaccounted Time Spent Serving a Request in JAVA

We have an API which returns xml results based on queries, the server is running Tomcat 7.0.53. I've been trying to determine how much time is spent processing and serving the request, and there is a significant amount of time (104ms, on aver...

How to Solve Diamond Interface Inheritance Problem in JAVA?

Hello. I'm trying to solve the following problem. I have 4 interfaces that are in a diamond shape and 2 classes. The requirements is to make the method calls work, while keeping f1 as the interface of x. Can you guys give me a hand? ...

How to Fix Java Code for Developing Product Calculator?

Write a program requesting a number (n), then ask n numbers more and print their product (use "for"!). The requested "n" number must be integer and positive. (The multiplied numbers must not be positive!)   The resu...

How to Change Array List to Integer or Double in JAVA Program

Hi   How can I change an array list to integer or double?   this is my code and i want show answer like a number and i use it not just print it...   import java.util.*; public class JavaApplication28 { p...

How to Fix Ajax Call Handler Method in Spring Controller

This is my controller : @Controller @RequestMapping(value = "/paymentgateway") public class PaymentGatewayController { @RequestMapping(value = "/checkPayStatusProposalID/{proposalID}", method = RequestMethod.GET) @ResponseBody publi...

How to Instantiate JAVA Interface if Implementation is not Available?

If I have the interface accessible from all modules, but implementation cannot be accessible, how can I instantiate this from other modules?   If I have 3 modules, one module is accessible to all which has my interface, and the other 2...

How to Fix Null Pointer Exception When calling Implementation Via Interface from Another Module

When I try to call an implementation from another module via interface, I get null pointer exception   I need help! I get nullpointer exception, after deployment. I have an interface AirlineClient in 'com.airline.model.hook...

How to Create Response in Controller Class for Success & Internal Server Error

I want to code for success and internal server error response message in my controller class. I need format of code. Please anyone please help me I'm using springs. The message should be like this:      ...

Create a Delete Method for API : Error Method Map Undefined

@DeleteMapping("/term/{id}") public ResponseEntity <?> deleteTerm (@PathVariable(value="id")Long termId) { return ((Object) termService.findById(Id)).map(term -> { termService.delete(term); return Resp...

How to Call Parametrized Method from LibraryCollection Class to Main Class

Hi Everybody!!  I am working on library management system project. Below is my LibraryCollection class. I would like to call my checkOutMaterial() method in the main class.  I need help on how to call the method.  Any help wo...

How to Implement Java Concurrency Code

Java!! Concurrency Code   You have been given a simple API to buy and print postage. Write a program that submits each incoming order to the API and then prints the shipping label.   Unfortunately each call to the shippin...

How to Compare Two Text Files in Java Programming Application

How can I Compare Two Text Files each line with all line in other file separated by two colons in java programming. Text file content should like this: 1.txt : accountsservice :: 0.6.40-2ubuntu11.3 :: None :: amd64 :: None 2.txt : cron...

What Operator is Used to Separate the Types of Exceptions in JAVA

What operator is used to separate the types of exceptions propagated in the header of a method or builder when there are more than one?

Unhandled exception type XmppStringprepException

import org.jivesoftware.smack.tcp.XMPPTCPConnection; import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration; import org.jxmpp.jid.DomainBareJid; import org.jxmpp.jid.EntityBareJid; import org.jxmpp.jid.Jid; import org.jxmpp.jid.i...

How to fix Error:(52,55): Incompatible Types: EditText Can't be Converted to String in Android Studio

bRegister.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final String password = etPassword.getText().toString(); final String email = etEmail.getText().toString(); ...

Where to Place Audio Files to Get Rid of Not Found Exception Error in JAVA Program?

  I am working on a game in java and I have a class that reads an audio file as InputStream and then plays that file through AudioPlayer. I keep getting a file not found exception. I have tried placing the audi...
prev 1 3
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: