32,199 Topics

Member Avatar for
Member Avatar for Sifat_1

Write a Java class Clock for dealing with the day time represented by hours, minutes, and seconds. Your class must have the following features: • Three instance variables for the hours (range 0 - 23), minutes (range 0 - 59), and seconds (range 0 - 59). • Three constructors: o …

Member Avatar for rproffitt
0
250
Member Avatar for markusd5454

Below is a program that asks the user to input a username and password. Once logged off the user is asked to re-enter their username and password. Is the program correct where it checks if the username and password input before is correctly input again?. Any help would be welcome …

Member Avatar for Reverend Jim
0
86K
Member Avatar for KINYUA_1

I am trying to get information on when was the last date a file was modified in java. I have the date in long format. I dont know why the long object is showing the year to be 1970.Below is my code File mypath=new File(my_global_folder+"/"+mydata.getItemAtPosition(position)); long time=mypath.lastModified(); //When i try …

Member Avatar for JamesCherrill
0
65
Member Avatar for khaldrogo

Hi, I would like to build a software career and am looking for the best software training institution. Can you please help me to find one? Thank!!!

Member Avatar for rproffitt
0
26
Member Avatar for mollyrock705

![Inked235345364566556546_LI.jpg](https://static.daniweb.com/attachments/4/b5bf788aff340f6e41ee2b6d28f1f5c9.jpg) Sample output: Enter number of guests: 40 40 guests have been invited. Enjoy the party!

Member Avatar for loveboat
0
448
Member Avatar for M.S.A 

Hi all .. I've been doing my coursework .. I have done 30% of it .. but I've met problem since the day before yesterday .. I've tried to solve it but I couldn't .. I've been requested to write programme that promote the user to enter a file name …

Member Avatar for Gergely_1
0
2K
Member Avatar for Athira_3

Create an applet which contains one Combo Box for fonts name, One List Box for Font Size, and 3 Radio Buttons for Font Style i.e. Bold, Italic, Plain. The applet also displays some string message by a label. Write a Java program such that user will able to change the …

Member Avatar for rproffitt
0
106
Member Avatar for thomasdoejr

Write a program using for loops to produce an R by C rectangle, where R and C are provided by the user. The following are the triangles for different values of R and C. R is the number of rows and C is the number of columns

Member Avatar for rproffitt
0
333
Member Avatar for gh.fuz

Develop a java program for a grading system tha satisfies the ff requirement:\ 1. for passing an exam, a student must pass by a score of 30 or more and assessment of 20 or more to be issued a certificate 2. if a student score a total grade of 49 …

Member Avatar for JamesCherrill
0
6K
Member Avatar for damnngwasi

Project Title: Student Record & Registration using Linked list This project is a Linked List application. The project considers st. Paul’s university having three departments: Business, Social Sciences and Computer Science. The university considers KCPE (O-level) , KCSE (A-level) and entry test marks for registering a student and calculate an …

Member Avatar for rproffitt
0
27
Member Avatar for runi

I have a logfile like this, and I need to extract filenames. For File 1 of 209 - Need to extract **"01021997_0011708_ENDTREQ_111114.ica"** from the line "Src info : D:\Test\ica\01021997_0011708_ENDTREQ_111114.ica" where it has "Save : Can't save file! Error code = BADI (Bad image file)" File 2 of 209 - Need …

Member Avatar for rproffitt
0
52
Member Avatar for stayfierce

I having been trying to change the font size and textposition of a textfield but I have not had any luck. I am trying to change the font size of a text field. I would like the font that is typed in the text field to be bigger and bolded. …

Member Avatar for julianksb
0
53K
Member Avatar for AbiliteX

![1.PNG](https://static.daniweb.com/attachments/4/30218db470c042804fbc7058f7117a58.PNG) ![3.PNG](https://static.daniweb.com/attachments/4/f977d47907c5d7e5c039898912f30603.PNG) ![2.PNG](https://static.daniweb.com/attachments/4/11426db454577787554b6cff488df663.PNG)

Member Avatar for rproffitt
0
23
Member Avatar for Nymphalys08

Hi Experts, I want to ask if there is a way if the user input a character it will handle an exception and go back again to the menu but in my code it wont go back to the menu. Thank you public class main { public static void main(String[] …

Member Avatar for JamesCherrill
0
72
Member Avatar for Cort3z

Hi. I have a little problem with my code. I want to cast a complete arrayList to a different type, but java wont let me... Here is a compressed version of what is happening: [CODE] //The interface I use. public abstract interface Drawable{ //some methods } //A class that is …

Member Avatar for JamesCherrill
1
7K
Member Avatar for Nymphalys08

Hi Experts, Appreciate your help or advise as I am stuck. The user will input all of the objects (like name, gender, age) into the system. Once, user input it will write to a file. The program should only handle file handling. is my program correct? Thank you in advance …

Member Avatar for rproffitt
0
39
Member Avatar for Nymphalys08

Hi Experts, I have a question. I have an object and want to insert in a text file. Before inserting, I want to check if it is duplicate. If no duplicate is found, I will insert the object. If yes, will not insert an object? Do I need a collection …

Member Avatar for Naheedmir
0
47
Member Avatar for asutosh_1

def findMaximumPath(mat): rows = cols = len(mat) count_list = [] for i in range(rows): summ = 0 mat_index = [rows-1, cols-1] curr_index = [0, i] summ = mat[curr_index[0]][curr_index[1]] while curr_index[0] != rows-1 and curr_index[1] != cols-1: if mat[curr_index[0]][curr_index[1]+1] > mat[curr_index[0]+1][curr_index[1]]: curr_index[1] = curr_index[1] + 1 else: curr_index[0] = curr_index[0] + …

Member Avatar for JamesCherrill
0
26
Member Avatar for Asjdkwjsnc

I would like to know how it working. Here is the question.. isnt it put the method Iterable positions();? Please help me to figure it out. Suppose we want to extend the PositionalList ADT with a method, indexOf(p), that returns the current index of the element stored at position p. …

Member Avatar for JamesCherrill
0
177
Member Avatar for maleficentest

how to code a 6/49 lottery draw using java and only random and scanner only is used.

Member Avatar for rproffitt
0
18
Member Avatar for siyeon

I would like to know how it working. Here is the question.. isnt it put the method Iterable positions();? Please help me to figure it out. Suppose we want to extend the PositionalList ADT with a method, indexOf(p), that returns the current index of the element stored at position p. …

Member Avatar for rproffitt
0
18
Member Avatar for Nymphalys08

Hi, I would like to ask regarding File Handling in Java. I am creating a program for my school project and we should use file handling only (.txt) not database. When I add a product (with product code, product name, price, etc), I want to save it in a file. …

Member Avatar for rproffitt
0
50
Member Avatar for Saboor880

Hi! I have been developing and distributing Standalone Java Products in my local market for 4 years. My products include, POS Softwares for Retail and whole Sale Businesses and for Food Businesses such as Restaurants and cafes. I use Apache Derby Database which is also known as 'JavaDB' as database …

Member Avatar for Saboor880
0
184
Member Avatar for Andrew_70

/** * @param args the command line arguments */ public double averagegrades(double total, double average) { average = total/5; return average; } public static void main(String[] args) { Scanner input = new Scanner(System.in); double[] grades = new double[5]; double total = 0; double average = 0; for(int i=0; i<5; i++){ …

Member Avatar for rproffitt
0
37
Member Avatar for Craig_11

The Action Driver Class when it runs it just brings up a small box with java logo and close and minimize options thats all...... I have reviewd the code over and over and my instuctor said to just review my work... I am so lost....

Member Avatar for JamesCherrill
0
127
Member Avatar for rex_2

I'm trying to convert a Java code into Python. I could adapt most of the code, however, it is difficult to me to link all the functions. The java code is used in Weka. I would like a stand-alone python code. The algorithm in the code is presented in this …

Member Avatar for Reverend Jim
0
244
Member Avatar for dearbhla_mcd

I have a form with dropdowns. Based on that form input you should be able to view the details of multiple employee's in another JSP. I cannot get this to work and when testing, the arraylist employeesList size returns zero. My code is below - can anyone see where I …

Member Avatar for HKold
0
294
Member Avatar for ronaktiwari6979

<LEGEND ><b><%=pagetitl%>:-</b></LEGEND> <div id="container"> <div id="dynamic"> <table cellpadding="0" cellspacing="0" border="1" class="display" id="example" style="width:98%;" > <thead > <tr style="background-color:#E6E6FA;border-color:#a7c9de;"> <th style="border-color:#a7c9de;" >File ID</th> <th style="border-color:#a7c9de;" >Title</th> <th style="border-color:#a7c9de;" >Name</th> <th style="border-color:#a7c9de;" >Last Refresh Date/Time</th> <th style="border-color:#a7c9de;" >Refresh Now</th> </tr> </thead> <tbody> </tbody> </table>

0
29
Member Avatar for Andrew_70

New to Java and would appreciate the help with the assignment: Write a program to collect exam grades from keyboard until an invalid grade (grade less than 0 or bigger than 100) inputted. Find how many grades were entered, the corresponding average grade, how many grades above 90, and how …

Member Avatar for Tori_1
0
109
Member Avatar for Tombezlar
Member Avatar for Reverend Jim
0
125

The End.