32,206 Topics

Member Avatar for
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
178
Member Avatar for sarah_15

I need help to create a program that will accumulated sales for any given month. The total for each month will be stored in an array. There can be more than one entry for any given month and they do not have to be entered in any order. After all …

Member Avatar for JamesCherrill
0
3K
Member Avatar for dimitrilc

## Introduction ## While **Functional Interfaces** and **Function Types** are used to declare the types of a function, **Function Literals** create the actual implementations of these types. In this tutorial, we will learn what Kotlin **Function Literals** are and how to create them. ## Goals ## At the end of …

Member Avatar for Klint
2
196
Member Avatar for dimitrilc

## Introduction ## Whenever I want to express method parameters, return type or variables as a *method* in Java, I often find myself having to do a bit of work: 1. If I cannot remember which pre-made **functional interface** to use, then I will have to look up the list …

1
158
Member Avatar for dimitrilc

## Introduction ## When working on Java applications, it is very likely that you will run into JDBC at some point. While you are unlikely to have to work directly with JDBC when using frameworks, it is still important to know how the connection is established and how queries are …

Member Avatar for dimitrilc
2
166
Member Avatar for Zunnie

You must write a small application in JAVA for items and their prices. Your program must: 1. Create an array of item names. Use the following item names: Bread, Milk, Butter, Chips, Honey, Soap, Towel, Carrots, Beans, Samp, Dress, Pants, Shoes, Socks. 2. Create an array of item prices. Use …

Member Avatar for Reverend Jim
0
264
Member Avatar for rishabs

User interface (UI) design is a process used by designers to create interfaces in software, such as computer devices, that focus on appearance or style. Designers want the interfaces to be easy to use and user-friendly. User interface design covers graphical user interfaces and other forms - such as voice-controlled …

Member Avatar for kasiamizera
2
364
Member Avatar for Programmer18

I don't want to pass ssh key through a file. I want to pass it along with the ssh command only along with user@ip. Can I modify that ssh command? Can anyone provide me the command to pass rsa key along with user?

Member Avatar for rproffitt
0
61
Member Avatar for dimitrilc

## Introduction ## When following tutorials on Daniweb, you might have run into one that requires knowledge about **Dependency Injection** as a prerequisite. People might also sometimes use the term **Inversion of Control** interchangeably with DI. These terms are related to one another, but they are not the same. In …

2
223
Member Avatar for dimitrilc

## Introduction ## Java annotations are often used to provide extra information for compilers, IDEs, and build tools. The extra information is often used to enhance the development cycle, such as reducing boilerplate, eliminating repetitive code, or warning against unsafe usage or mistakes. This tutorial aims to teach you the …

2
125
Member Avatar for Programmer18

So I have a method which takes upto 4 hours to execute. I need to stop this method within the first 30 mins of execution and have the available results upto that 30 mins of time only. Can someone help me with this? I have tried many things to terminate …

Member Avatar for JamesCherrill
0
96
Member Avatar for Braxy

Jaluh is making a room inventory in the Hostel where she is working. They have 16 rooms labelled as A-P. She is doing this manually that it will consume more time. Make a program that will automatically be identified if the room is taken or not. An array code.. ANYONE …

Member Avatar for Schol-R-LEA
0
171
Member Avatar for qhayiyamc

You must write a small application in JAVA for items and their prices. Your program must: 1. Create an array of item names. Use the following item names: Bread, Milk, Butter, Chips, Honey, Soap, Towel, Carrots, Beans, Samp, Dress, Pants, Shoes, Socks. 2. Create an array of item prices. Use …

Member Avatar for Reverend Jim
0
104
Member Avatar for Yolie_b

Write a program that converts temperature from degrees Fahrenheit to degrees Celsius .The formula is C = (5.0/9.0) (F-32)

Member Avatar for toneewa
-1
282
Member Avatar for gautamz07

Which declaration of the main method below would allow a class to be started as a standalone program. Select the one correct answer. public static int main(char args[]) public static void main(String args[]) public static void MAIN(String args[]) public static void main(String args) public static void main(char args[]) WHAT IS …

Member Avatar for sourabh_8
1
957
Member Avatar for Vandiun

I was working on an infix to postfix program (using stacks), but something went wrong somewhere. Please check whether my intopost technique is right because I am getting the output as infix without conversion. //stack class also containing the intopostfix method import java.util.*; public class Stack { int i,j; char …

Member Avatar for Fifth Horseman
1
224
Member Avatar for Yolie_b

Write a program that prompts the user to input a four - digit positive integer.The program then outputs the digits of the number one digit per line

Member Avatar for rproffitt
1
122
Member Avatar for kasmar45

Yes I finally decided to continue on with my programming efforts. I would like to be able to refer to myself as a master programmer, but I may not have that much time, after all I am almost 80 years old. Right now I'm delving into C++ and finding it …

Member Avatar for john_111
4
302
Member Avatar for Sydul2000

Hello, I am developing android java filemanager app.. I used checkbox to check 1/file.mp4 2/folder(files+sub folders) . How can i add copy paste feature for checked 1, 2 file folder fully at same time ?like -google filemanager app.. Advance Thanks

0
19
Member Avatar for N_765

public class Clock { private int newHour; private int newMinutes; private int newSeconds; public Clock () { } public Clock (int newHour, int newMinutes, int newSeconds) { this.newHour = newHour; this.newMinutes = newMinutes; this.newSeconds = newSeconds; } public int getNewHour(int newHour){ return this.newHour; } public int getNewMinutes (int newMinutes){ return …

Member Avatar for zemiak
0
74
Member Avatar for Shephard_1

ArrayList<MArry> databas = new ArrayList<MArry>(); //Add data into the databas databas.add(new MArry("Timothy", "SS1")); databas.add(new MArry("Olayemi", "SS2")); System.out.println("Student\tClass\n"); for (MArry myarry: databas) { System.out.printf("%s \n", myarry); } /*Please I need someone to check this out. Each time I run the code the output I'm getting is the memory address of the …

Member Avatar for JamesCherrill
0
19
Member Avatar for adisharma

Hello All, I am working on a project which based on python and java both and I am good at java. I want to know which programming language support high database connectivity? According to this [source](https://www.interviewbit.com/blog/java-vs-python/), Java provides stable connectivity but not an idea about python? Can anyone tell me …

Member Avatar for Reverend Jim
0
30
Member Avatar for Pekja

Can anyone help me on how can I fetch data of only current login user using Retrofit? For web development I do it like this "SELECT * FROM job_register WHERE job_assign ='{$_SESSION['username']}' AND job_status = '' " How can I implement this using Retrofit in Android?

Member Avatar for rproffitt
0
36
Member Avatar for Wafflez

Hello, May I know why the frame pops up double when I call it? Thank You! Login.java (line 63); import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.FileReader; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JTextField; public class Login{ JFrame frame = new JFrame(); JButton loginButton = …

Member Avatar for JamesCherrill
0
44
Member Avatar for Wafflez

I want to open JFrame (created from NetBeans) using the java class, but the JFrame is not showing up. I run the code from Eclipse. Here my class: (line 67) import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.util.Scanner; import javax.swing.JButton; …

Member Avatar for Wafflez
0
97
Member Avatar for Wafflez

I'm trying to get a text at the customer.txt to validate if the customer has already registered Here is my code: import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.util.Scanner; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPasswordField; import …

Member Avatar for Wafflez
0
97
Member Avatar for mihailbog245

Hello, I search many days about this problem. I'm curious if in a text file it's possible to sort words in a language in alphabetical order and in another language to ignore them using ArrayList?

Member Avatar for pritaeas
1
32
Member Avatar for Mr.M

Hi DW. Anyone who knows how can I achieve this? `List<String> dynamic[i];` The reason why I need this is that I'm creating a dynamic list with nested lists so there's no fixed number of data the list can be, this is inside the `for` statement which receive the json data …

Member Avatar for Mr.M
0
180
Member Avatar for mihailbog245

I don't get what's the problem with this Dictionary created using Arraylist and Socket . I get SocketException error I don't know why also I tried to created a method to read.... ClientCode: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.util.Scanner; import java.net.SocketException; public class Client …

Member Avatar for JamesCherrill
0
151
Member Avatar for LevelSix

I'm trying to create two car objects, that move across the frame, in opposite directions, at different heights so they don't collide. This type of programming is new to me, and after following the only example I'm provided with, I still can't get this to work. All the code I …

Member Avatar for Rosayu
0
3K

The End.