31,001 Topics

Member Avatar for
Member Avatar for Aob

I am having a trouble not knowing how to do a java code that will take user string then encrypt it using Elgamal algorithm as following Elgamal algorithm Pseudo code: - Select Q where Q is a prime number - Select α where α is a primitive root of Q …

Member Avatar for Aob
0
5K
Member Avatar for Mirty

I need help with some questions.They were 20 of them but this 5 have been so hard for me. Any help I get will be highly appreciated. Cheers!!! 1.When mergesort is implemented on a linked list it is possible to implement it as a stable sort. True or False? These …

Member Avatar for Mirty
0
289
Member Avatar for Violet_82

Hi guys, as I'm looking into the MVC pattern, I thought I'd create a small application to understand a bit more. Let's look at the code: //model package model; public class StudentModel { private String name; private String surname; private int number; public String getName() { return name; } public …

Member Avatar for JamesCherrill
0
1K
Member Avatar for John_160

package grossmontbank; import java.util.Scanner; public class GrossmontBank { //class variables (global - accessible throughout this class) //scanner object to be used throughout private static Scanner input = new Scanner(System.in); //array of blank accounts private static final int MAX_ACCOUNTS = 50; private static Account[] accounts = new Account[MAX_ACCOUNTS]; //total accounts created …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Ater Mawut

Need help with an assignment here are the instructions. 1. Your Clock.java must be the class. 2. Your ClockApp.java is the main program. 3. Your clock will be a 24 hour clock 4. You will create the following public member functions for the clock class. a. clock() //Default constructor with …

Member Avatar for Derek_10
0
501
Member Avatar for samuel_18

how to update Jtable by editing its cell with netbean. someone help please

Member Avatar for rproffitt
0
213
Member Avatar for khate
Member Avatar for rproffitt
0
87
Member Avatar for Selomie

1. Measuring the effect of Parallelization Using one of the suggested methods in class ( p-threads, OpenMP, C-Sharp or Java Threads) implement an application that adds two integer vectors (A,B) and store the result on vector C. The size of these vectors is to be set at 67108864. Measure the …

Member Avatar for rubberman
0
290
Member Avatar for Patrick_22

Hello guys, am making a desktop application using javafx and after making the exe installer with inno and wix. the problem is after installing the program everithing is working properly but when you go to source file all my classes are there intact so it can be changed easyly. HOW …

Member Avatar for JamesCherrill
0
337
Member Avatar for Mirty

Instructions are in the image above. This is what I have now. Everything is done except the last part where if you click Yes the program is supposed to continue with other calculations. This is where am stuck. import javax.swing.JOptionPane; public class OPTIMA2 { public static void main(String[] a) { …

Member Avatar for JamesCherrill
0
200
Member Avatar for Jay_24

I think XML is declarative , I am not sure though if you have the right answer could you please provide sources doing a project for analysis of programming languages. This information would be greatly appreciated.

Member Avatar for Jay_24
0
242
Member Avatar for massivefermion

I want to learn web programming with Java. I'm using eclipse neon with tomcat 8.5.13. My question is do these tools support asynchronous programming and server push technologies or should I use other tools? Thanks

Member Avatar for rproffitt
0
232
Member Avatar for divinity02

hi this is jus a question. if you are doing a program that uses a GUI, with the radiobutton, checkboxes and so on why do you have add an import for all the jradiobutton and jcheckbox. is is necessary to add an import for each of them

Member Avatar for JamesCherrill
0
179
Member Avatar for ka-ii

i have learn this Java since last month for my work purposes. i wanted do this exercise. this is Vending Machine Program. I don't if write it in a wrong way. So i need somebody to show me the in my code. i know there must be wrong somewhere in …

Member Avatar for JamesCherrill
0
14K
Member Avatar for umutcanergun

Hello there, I am working on a school project, this project is a program that separates the entered words into syllables, but now I have made my algorithm according to our country but I can not decide in one place I will do it by using the program sequence but …

Member Avatar for JamesCherrill
0
112
Member Avatar for ahmedrizwan1

public class roughLargestSmallest { public static void main(String[] args) { System.out.println(" Enter a sentence "); String x = IO.readString(); compress(x); } public static String compress(String original) { int count = 1; StringBuilder builder = new StringBuilder(); for (int i = 1; i < original.length() - 1; i++) { if (original.charAt(i) …

Member Avatar for JamesCherrill
0
250
Member Avatar for pranitha_dolls

good afternoon to every body iam doing my final year btech(cse).iam thinking to do mini project in java. i have less knowledge how to start,how to get title,how to proceed .can any one please give ur advice to me...........................

Member Avatar for Sharon_5
0
155
Member Avatar for washington kays

hello guys i am looking for anything that has to do with virtual reality. i am doing a research on the application of virtual reality in e-commerce so if you have anything that is in line with virtual reality please help me. thank you

Member Avatar for happygeek
0
106
Member Avatar for Michael_69

Hi guys, can you help me with a MIPS Asm exercise. It's the first time that i coding in this language... I solved the exercise in Java, you can get some help to convert it to MIPS? thanks a lot to everyone Java code: public class Exrcise1 { public static …

Member Avatar for ddanbe
0
368
Member Avatar for newprogrammer14

This might be a simple problem but I had difficulties finding a solution. I'm trying to return data in specified formats for the same input. I've data in two tables - Book_Details and Book_Summaries - which I need to combine in fixed formats. My requirement is that I need to …

Member Avatar for newprogrammer14
0
324
Member Avatar for patk570

Hey Everyone, I am looking for possibly a CRM that can be used for multiple items: 1. Invoicing 2. Credit Card Processing 3. Front End Website 4. Customer Area/Members Pages 5. Admin Area 6. Integrate with Quickbooks? 7. Manage Employees (Time and Sales) 8. Inventory Management Any advice would be …

Member Avatar for gottaloveit
1
185
Member Avatar for Sagar_9

Hello All, I'm currently working on a project which requires me to encrypt multiple text files at one go. I am able to retrieve the name of the files through listfiles() but how am i supposed to pass those files to File variable so that the encrypt method can encrypt …

Member Avatar for Sagar_9
0
2K
Member Avatar for Sameer_8

Hello i have an other code that bother me because i am confused what i should do take a llok to the questions first: **Example 2: The GradeBook Class: Consider the attached GradeBook class. Complete the following tasks: 1-Modify the determineClassAverage method so it allows the user to enter the …

Member Avatar for JamesCherrill
0
264
Member Avatar for k2k

hi, does anyone know how to insert a background picture to a JPanel? I have googled around, found something seem more difficult than it should be, and a simple one as below but not showing the pic. [code] midBoard = new JPanel(); JLabel pic = new JLabel(new ImageIcon("Sunset.jpg")); //midBoard.setBackground(java.awt.Color.RED); midBoard.add(pic); …

Member Avatar for JamesCherrill
0
14K
Member Avatar for subhaac

I'm trying to implement Callable for Strassen's algorithm to multiply two matrices. I'm new to this, and i'm having a few issues and I can't figure it out for the life of me :( . The first problem is that the program prints out 0 for all the elements of …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Sameer_8

Hi i have other problems in other class the questions is ** The Person class Create a class called "Person" that includes three pieces of information as instance variables: a name, address, and age. Your class should have a constructor that initializes the three instance variables. Provide a set and …

Member Avatar for Sameer_8
0
197
Member Avatar for Sameer_8

Hello everyone, I have a reall small questions and i am stuck in the end of my code. I need just someone explane it to me please or maybe i am confused. Take a look... Questions: **Create a class called "Employee" that includes three pieces of information as instance variables: …

Member Avatar for Sameer_8
0
1K
Member Avatar for Violet_82

Hi guys, as I have never used any design pattern I thought I might try to learn something by developing a small application. What I'm thinking is something like a radio controlled car simulation - I mean a really really simplified version of it of course - something like creating …

Member Avatar for Violet_82
0
313
Member Avatar for hbk619

I've been googling and going round in circles, simply put: when the button is clicked i want an image of a card to appear. [CODE]class Actions extends JFrame implements ActionListener { JTextArea textarea = new JTextArea(2,25); JButton twist = new JButton("Twist"); JButton bust = new JButton("Bust"); public Actions() { super("Twist …

Member Avatar for Akshay_8
0
2K
Member Avatar for Goldfinch

I have been comparing a Java GUI program's start time to both native apps and another Java based app, and I have concluded that my program is launching a little too slowly, or at least a little slower than I would like. I think it's taking too long to load …

Member Avatar for JamesCherrill
0
240

The End.