31,001 Topics

Member Avatar for
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
167
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
100
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
198
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
954
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
212
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
117
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
293
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
17
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
62
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
39
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
93
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
86
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
31
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
171
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
145
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
Member Avatar for TimTheCoder

Hey guys is there a way to intercept shut down to make the user enter password if the state is in the locked state? Its just that I am engineering an anti-theft app and would to disable shut down from lock screen while the device is in the locked state. …

Member Avatar for TimTheCoder
0
78
Member Avatar for John_358

import net.proteanit.sql.DbUtils; import javax.swing.*; import javax.xml.transform.Result; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.*; public class EmployeeRegistriation { private JPanel Main; private JTextField txtName; private JTextField txtSalary; private JTextField txtMobile; private JButton saveButton; private JTable table1; private JButton updateButton; private JButton deleteButton; private JButton searchButton; private JTextField txtId; private JScrollPane tabla_1; public …

0
65
Member Avatar for ahmad abu lafi

If someone with a mechanical engineering BSc degree wants to have a job in cloud computing, would his mechanical engineering background benefit him in the high-tech filed ?

Member Avatar for rproffitt
0
26
Member Avatar for Hadil_1

trainSet = [[2, 2, 2, 'a'], [4, 4, 4, 'b'], [6, 6 , 6, 'b'] testInstance = [5, 5, 5] Similarity: Calculate the Euclidian distances between the testInstance and all point of trainSet (Three points) In our case: Three distances between [5, 5, 5] and [2, 2, 2], [4, 4, …

Member Avatar for Reverend Jim
-1
64
Member Avatar for Princess Caissa

I am new to coding and want some insights how can I find the duplicate in a text file and that duplicate will be store it to another text file.

Member Avatar for rproffitt
0
20
Member Avatar for MichaL_11

Hello, I have project and user writes date(using scanner etc.) which saves to an ArrayList and I need to sort the dates. (There is the code (its in Czech) den = day, mesic = month, rok = year, datum = date) public class Ukoly { protected String predmet; protected String …

Member Avatar for JamesCherrill
0
31
Member Avatar for Linda_19
Member Avatar for vivan_1

I'm trying to manage Splunk with Chef and ran across a problem when using Chef to programmatically start/stop/restart the Splunkforwarder service: The request did not respond to the start or control request in a timely fashion. - ControlService: The service did not respond to the start or control request in …

3
54
Member Avatar for nouraaaaa

1. Methods to search for a book If the user chooses that option he should be asked of he wants to search for it using the book’s title (or part of it) or using the name of one of the authors (or part of the name) Depending on that search …

Member Avatar for zemiak
0
77
Member Avatar for mikewyatt

I have a very complex java program written with net beans 7.1. It consists of 1 .java file that has a main(), and over 25 supporting .java files (most used for routines inside of tabs). In addition there are 15 different databases (embedded) associated with it. The program is virtually …

Member Avatar for Charls_1
1
857
Member Avatar for jspence29

I am writing a program that makes hands of five cards, and tests them against poker combinations. Wikipedia says you have a 1/254 chance in getting a straight, but I get an abysmally small mount of straights in each run. (around 50 in one million hands). Can anyone tell me …

Member Avatar for Prasanna_9
1
1K

The End.