36,051 Topics

Member Avatar for
Member Avatar for Read a Book

Hello everyone, i am in some kind of testing stage where i want to test some security flaws on websites/browsers with the cookies. I want to generate google cookies with a different time period. (older than 2 months). Firstly I will try to integrate into the browser via JS Secondly …

Member Avatar for AndreRet
1
451
Member Avatar for Mindmade
Member Avatar for Kare12

Hi, I am a beginner. I am trying to get a audio notification when the Android battery is full and low. I understand the logic. As in, check battery status, then if battery_full run Android Media Player. I am trying to use it for my home needs. This is the …

Member Avatar for Kare12
0
63
Member Avatar for epsilonb

I am trying to import a list from a txt file, but the reader skips the first line and also adds the last "null" line that the file writer adds. I fixed the null part but I can't seem to be able to add the first line in the list. …

Member Avatar for JamesCherrill
0
440
Member Avatar for morrisavendano

CTO, Associate Professor, SwEngineer, Psychologist, Consultant, Public Speaker, Researcher, and Volunteer.

Member Avatar for Akira350lth
0
43
Member Avatar for j_834

I have two projects (one project Referenced in the form of a jar package.jar project can be referenced by multiple projects). mybatis interface code is written in the jar project(common project). datebase properties at war project. In the beginning, all the actual operations of the database were called in the …

Member Avatar for JamesCherrill
0
65
Member Avatar for Mindmade
Member Avatar for rproffitt
-1
68
Member Avatar for sophi19
Member Avatar for ompu

package Main2; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JPanel; public class GamePanel extends JPanel implements Runnable{ final int originalTileSize = 16; //16x16 tile final int scale = 3; final int tileSize = originalTileSize * scale; // 48x48 final int maxScreenCol = 16; final int maxScreenRow = 12; …

Member Avatar for Dani
1
32
Member Avatar for Dkevinjames

My name is Kevin james and I am a full-stack Web Application Developer and Software Developer, currently living in Canada I have a Bachelor of Science in Computer Science from University of toronto, and my primary focus and inspiration for my studies is Web Development. In my free time, I …

Member Avatar for bravomorris9
0
23
Member Avatar for mmarkgilbert142

Hi all! If I want to get fast results on the project, what would be more efficient: getting only senior engineers, or considering those who are less senior but result-focused? Why?

Member Avatar for compshooter
0
174
Member Avatar for Rita_13

PR A PROGRAM IS REQUIRED TO READ FROM THE SCREEN THE LENGTH AND WIDTH FROM THE SCREEN THE LENGTH AND WIDTH OF A RECTANGULAR HOUSE BLOCK AND THE LENGTH AND WIDTH IF THE RECTANGULAR HOUSE THAT HAS BEEN BUILT ON THE BLOCK.THE ALGORITHM SHOULD THEN COMPUTE QND DISPLAY THE MOWING …

Member Avatar for Dani
-1
56
Member Avatar for Sam_417

Hi, I have an application with one JFrame and two modeless JDialogs. When I mimimize the JFrame, the dialogs are still there, not minimized. So i need to hide them. I can hide them with WindowDeactivated event which runs one time when the JFrame is minimized but when I want …

Member Avatar for JamesCherrill
0
26
Member Avatar for Darivs

Hello guys! Sorry newbie here. I get an error in Netbeans while trying to add an Icon to a J label. The error is: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null After importing all of the images I used for my project. I still get …

0
82
Member Avatar for Saboor880

Hi to All! I have a POS Software which I have developed in Java, NetBeans IDE. I am deploying this software on a variety of Windows Computers / Laptops for 5 years. I have used JFormattedTextFields for double data type in the whole Software. And I have set Format of …

Member Avatar for Стас_1
0
90
Member Avatar for Alisha_8

I have been doing web development with PHP for the last few years, and like a lot of people, I have a strong dislike for PHP. I also have done lots of Java development, but never web development. Having a good knowledge of Java, I decided I would try web …

Member Avatar for jwenting
0
122
Member Avatar for Dkevinjames

How do I track the source of each user signup for B2B SaaS product? In other words, how do I check from which source the user landed on my website? I need to track for each individual user.

Member Avatar for Alisha_8
0
57
Member Avatar for Saboor880

I developed a Java Application to run on Mac BigSur. I used Java Derby as database for this application. The Application gives an Exception: java.lang.ClassNotFoundException:org.apache.derby.jdbc.EmbeddedDriver The interesting fact is that When I run this application on my MacBigSur(Which I have installed on Virtual Box) then the application runs perfectly. But …

Member Avatar for Skillz_1
0
67
Member Avatar for fouad_4

I need help with a java project as soon as possible. Please help if absolutely necessary. Please, please ![Java_Project_Fall2022_page-0002.jpg](https://static.daniweb.com/attachments/4/e1636f48d3cb06c972c29cf47fa9f44c.jpg) ![Java_Project_Fall2022_page-0001.jpg](https://static.daniweb.com/attachments/4/4e7d8604a518555e648b8cfe86711934.jpg)

Member Avatar for JamesCherrill
0
55
Member Avatar for David_270
Member Avatar for ashishhhroe

I am really thankful to become a member of this community. I am a developer, learning new programming languages to push my professional growth. I have 2 years of experience as a Java developer. Now I am learning new technologies like Python and Ruby on Rails. I will help community …

Member Avatar for pritaeas
0
19
Member Avatar for Justin_44

I am not quite sure why I am getting this error package tile; import java.awt.Graphics2D; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import javax.imageio.ImageIO; import main.GamePanel; import main.UtilityTool; public class TileManager { GamePanel gp; public Tile[] tile; public int mapTileNum[][]; public TileManager(GamePanel gp) { this.gp = gp; tile = …

Member Avatar for JamesCherrill
0
86
Member Avatar for sachitha_1

Create three classes the Calculation class, Conversion class and Menu Class. The Conversion class should have the following methods. double KMToMiles(double distance) double MilesToKM(double distance) double FeetToMetres(double distance) double MetresToFeet(double distance) double KgToPounds(double weight) double PoundsToKg(double weight) double CelciusToFahrenheit(double temperature) double FahrenheightToCelcius(double temperature) The Calculation class should have the following …

Member Avatar for JamesCherrill
0
319
Member Avatar for cyrennex

Create three classes the Calculation class, Conversion class and Menu Class. The Conversion class should have the following methods. double KMToMiles(double distance) double MilesToKM(double distance) double FeetToMetres(double distance) double MetresToFeet(double distance) double KgToPounds(double weight) double PoundsToKg(double weight) double CelciusToFahrenheit(double temperature) double FahrenheightToCelcius(double temperature) The Calculation class should have the following …

Member Avatar for JamesCherrill
0
99
Member Avatar for Abdullah_66

I'm working on a class project where I am supposed to determine how long it will take for someone to be fully vested in their pension. I have to take the time they started working as a string mm/yyyy and then calculate the date they will be fully vested. The …

Member Avatar for rproffitt
0
19
Member Avatar for Saboor880

Hi ! I have developed a Java application using Derby Database. The application jar file is successfully running on Windows but on Mac it gives and exception as following: ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver I am pasting code for database Connection which I wrote. String dbdriver = "org.apache.derby.jdbc.EmbeddedDriver"; Class.forName(dbdriver).newInstance(); con = DriverManager.getConnection("jdbc:derby:C:\\4DSOFTECHDB; create …

Member Avatar for JamesCherrill
0
297
Member Avatar for Denji

Grading Sheet With Passed and Failed Using If Else Statement FOLLOWING INPUT: FOR REMARKS: -FULLNAME -75 UPTO 100(PASSED) -SECTION -74 DOWN TO 65(FAILED) -SUBJECT DESCRIPTION -OTHER GRADES(INVALID GRADE EX.105) -SUBJECT CODE -1ST MONTHLY EXAM -1ST PRELIM EXAM -2ND PRELIM EXAM -MIDTERM -PRE-FINALS -FINALS

Member Avatar for Reverend Jim
0
17
Member Avatar for Curious Gorge

I am on the latest version of Windows 10, running with SWI-Prolog 7.6.4, and trying to get JPL (Java <->Prolog) running for a school project. I've not had to deal with path issues much but I have done my best to understand the problem. I've added the necessary import statements …

Member Avatar for ashramvidamvid
1
3K
Member Avatar for Sofia Ann
Member Avatar for rproffitt
0
51
Member Avatar for Uzo J

How would you write this into pseudo code #include<cstdio> #include<cstdlib> #include<iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) //variables string var, var1; float cm, mile, kilometer, inch, meter, AU, fahrenheit, celsius, foot, quit, i; //program i = 1; while (i <= 1000000000) cout << "Enter the starting unit. For …

Member Avatar for Reverend Jim
1
79
Member Avatar for Silly_2

Hello there, I am trying to calculate the shot, the value, and the score in my Archery Target Program. But I have no such luck. Would anyone be able to help me?

Member Avatar for Reverend Jim
0
71
Member Avatar for Vandiun

Jackson does not provide a tool for generating Jackson classes from XSD or JSON, as JAXB does for a specific XSD. The JAXB class generator was used to generate a set of classes for the specified XSD schema. For polymorphic types, for example, JAXB provides the following annotation to identify …

0
15
Member Avatar for Williams Brown
Member Avatar for olong tea

This questions contains probability and I dont know how to work with it in Java import numpy import random def cup_game(): cashprice = [0.5, 1.0 , 2.0 , 5.0] n_turn = numpy.random.randint(5,11) n_mult = numpy.random.randint(3,6) cups = list(range(0,15)) x = numpy.random.choice(cashprice, 15, p=[0.3, 0.4, 0.2, 0.1]) x = list(x) turn …

Member Avatar for JamesCherrill
0
97
Member Avatar for Aarya_1

and was trying to find a way to make bubble sorting short as it is wayyy to long? so can anyone show me a code to do that?

Member Avatar for Reverend Jim
0
21
Member Avatar for olong tea

Hi, I am new to Java but familiar with python, I need to convert my code from python to Java can anyone help me? Much appreciated! import random suits = ['C', 'S', 'H', 'D'] val = list(range(1,14)) class Card: def __init__(self, suits, val): self.suit = suits self.value = val def …

Member Avatar for JamesCherrill
0
321
Member Avatar for asqinanuramni

hello, I am currently struggling so bad in understanding Java and how to implement the codes. I have to implement two subclasses for Canadian and US postal code in Java. For Canadian Postal code, a valid postal postal code has the rule: positions at 0,2,5 are letters. Positions at 1,4,6 …

Member Avatar for JamesCherrill
0
146
Member Avatar for Java5

**Introduction** You know that being effective is the key to success in any business domain. However, you may be wondering how to improve employee performance. In order to do this, it’s important to have tools at hand that will help you measure and track employee performance in real-time and act …

Member Avatar for Duncan_5
1
166
Member Avatar for Programmer18

Hi. So I want to open a application from Java code and open a new terminal for that application also through Java code. We can open the new terminal manually by entering ctrl+alt+t. But I need to do this via code without entering any keys. Can anyone suggest something?

Member Avatar for odeskavita
0
99
Member Avatar for UWInsure

Hello All, We have designed our system and integrate lots of opensource code into a single use system. All the inter connectivity are through APIs. Problem is, it's getting messy each day. We have been looking into Kong and Apigee. Anyone has experienced into situation like such? We have over …

Member Avatar for Dani
0
61
Member Avatar for dimitrilc

## Introduction ## In the last tutorial, we learned [how to set up our own RabbitMQ exchanges and queues](https://www.daniweb.com/programming/web-development/tutorials/538620/how-to-create-exchanges-and-queues-in-rabbitmq-server). In this tutorial, we will learn how to send messages to our custom **daniweb-exchange**. ## Goals ## At the end of the tutorial, you would have learned: 1. How to send …

1
640
Member Avatar for MagnusTheRed90

I have a question about encryption. So I have a code sample that has a key size being chosen, something like 32 bits or something, and I am basically either filling the key size buffer with the password and then zeroes, or null bytes, or a word repeated over and …

Member Avatar for adajames
0
138
Member Avatar for Deyns

HI GUYS I'M DEEPLY DESPERATE TO KNOW HOW TO CONVERT THE CODE FROM PHYTON TO JAVA, MY TASK IS DUE TOMORROW PLEASE HELP MEEEEE T_T

Member Avatar for adajames
0
150
Member Avatar for queency zyrel

Create a java application that will convert unit length from Metric to English system. The user will be asked to enter a Metric unit and then it will display the equivalent value to unit of English System. Use metric system like centimer, diameter, meter, etc. while use English system such …

Member Avatar for adajames
1
107
Member Avatar for queency zyrel

Create a simple java calculator console application that will use the four (4) basic math operators: Addition, Subtraction, Multiplication and Division. If conditional statements will not be use since it wasn’t discussed yet,

Member Avatar for Dani
0
36
Member Avatar for emmamark

I am attempting to write a program that will take a word as input from the user. The program will then find all of the words that can be used from the letters in the word the user inputted. A letter cannot be used twice if it only appears in …

Member Avatar for toneewa
0
221
Member Avatar for Ashwin01

![JD522_FA2_2.PNG](https://static.daniweb.com/attachments/4/1977355aeec12a9a2dfbe72584965be3.PNG) ![JD522_FA2_1.PNG](https://static.daniweb.com/attachments/4/79856a328e3fe67011afb484bb9c654a.PNG) ![JD522_FA2_3.PNG](https://static.daniweb.com/attachments/4/d9bc25423e0da12339e15aaee0f160ab.PNG) ![JD522_FA2.PNG](https://static.daniweb.com/attachments/4/90c9dac41812ac074849fe92617446a2.PNG)

Member Avatar for Dani
0
97
Member Avatar for jnbgames.dev

The program below is written in **Java** and is used to develop a Web Server that supports these status codes: **200** OK, **302** Moved Temporarily, and **404** NOT FOUND. The code can emulate an **HTTP** server in your local machine. Let me know if you find the code below helpful …

Member Avatar for JamesCherrill
1
165
Member Avatar for Ashwin01

Create a program called staffSalary using GUI Java and add a class named Staff that will determine the monthly payment amount of and return a specific staff description. The staff are getting paid differently base on the rate and numbers of hours worked. The staff also have different description based …

Member Avatar for Reverend Jim
0
60
Member Avatar for Dysiah

I need help to create a class named rectangle that contains -fields for length and width -setters and getters for the fields -a constructor that accepts length and width as parameters -an overloaded 0-arg constructor that sets field values to 0 -a method named computeArea that accepts no parameters and …

Member Avatar for Dani
1
191

The End.