35,618 Topics

Member Avatar for
Member Avatar for AQWst

I would like to know any advice for creating a program that will read in a *.csv file and load the data into a 24 x 24 array for further processing. I am including a total of 48 records, so that you can see how the data looks and what …

Member Avatar for JamesCherrill
0
13K
Member Avatar for Seijuro

Hello :) This is my first post. I haven't done a Java type program in a while (2-3 years). I am trying to write a simple program which displays a window with 5 buttons. When you click either the first or second button it should open another window within which …

Member Avatar for JamesCherrill
0
8K
Member Avatar for tejas_1
Member Avatar for Stanley_1

Hi team, Please show me how I can encrypt password and padd it with RSA algorithm. Show in java. Assume key is given.

Member Avatar for JamesCherrill
0
71
Member Avatar for dennis_10

I have a form in Acrobat DC with a data matrix barcode - when i scan the barcode it looks like this 777777799999MS2334WASHER912/15/16100YesYes3Q127/18 i need a tab between so when i scan them in excel they will fill in cells across a row. The code looks like this - any …

Member Avatar for JamesCherrill
0
393
Member Avatar for PKI

I have a validateRequiredField(e) function to validate empty field and a validateExistingEmail() to validate an email has existed in my database. I am able to see both alert("Field" + i + "is Required"); when the fields are empty and alert("This email has been registered"); when the email existed in my …

Member Avatar for otengkwaku
0
593
Member Avatar for Jeremy_7

I need to validate a name field to validate if the name field is empty and if the name existed in my database. If it passes both the validation(the user has input a name that is not existed in my database), then the form will be submitted. The problem is …

0
188
Member Avatar for brothman01

I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function: try { Runtime run = Runtime.getRuntime(); Process pr = …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Connie_4
Member Avatar for Siberian
Member Avatar for Siberian
0
136
Member Avatar for pranjiee

i have create desktop based application using java language. now i want to give it to my client so for that i want to create executable file for java prgram so how can i create .exe file from java program?

Member Avatar for JamesCherrill
0
621
Member Avatar for HibaPro

my activity is load a grid view from xml file and the controls from other xml file public class ResultActivity extends AppCompatActivity { GridView gridview; ArrayList<String> arrayList; String ip, db, un, passwords; Connection connect; PreparedStatement stmt; ResultSet rs; Button TButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gridviews); TButton = …

Member Avatar for imchivaa
0
340
Member Avatar for sireiz

Is there a way to develop a GUI which has graph data structure at the backend so that if we want to have information about a particular node or edge, we just tap its corresponding GUI representation and the app gives us the required info?

Member Avatar for JamesCherrill
0
316
Member Avatar for Violet_82

Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them. I don’t want at this stage work on a big separate project as I've already got plenty …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Ric-Albert

Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer" Here is the sample output that I …

Member Avatar for brothman01
0
251
Member Avatar for emmstarr

The problem asks: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid, as shown in the following sample run: Enter number of lines: 7 [CODE=text]......1 .....212 ....32123 ...4321234 ..543212345 .65432123456 7654321234567[/CODE] (except the example given shows spaces in between the …

Member Avatar for Jorge_12
0
5K
Member Avatar for Sulayman_1

I am a student struggeled in the following task I very appreciate if you can help, and send me an e-mail of solutiont ASAP please. The task is: Design and implement an object-oriented program describing two kinds of bank accounts, FixedFee and ChargeableFee, that differ in the way that fees …

Member Avatar for JamesCherrill
-2
859
Member Avatar for cproger

I have a Combo box/Dropdown and when a user clicks an option I want the combo box to set the text onto a jTextField. For example: if(carsJComboBox.getSelectedIndex() == 0) { currentCarsJTextField.setText("250 Million"); } if(carsJComboBox.getSelectedIndex() == 1) { currentCarsJTextField.setText("500 Million"); } The problem is that when the program runs, it automatically …

Member Avatar for JamesCherrill
0
327
Member Avatar for vishalsingh1080

...I want to start Android app development. Was wondering anyone of you could suggest me the best resources to learn from. I know java but have no idea about Android app development. I hope the resources cover all the basic features that are there in any modern day app like …

Member Avatar for mack_5
1
469
Member Avatar for joanelaine

when I boot up my Win 7 machine, I get this annoying message, as far as I know I don't even have Java. I can't find it anywhere on my computer. C:|User\Joan's Computer\new\new\jaAKSp I have searched the registry and also all programs but no Java. also, Google browser and Internet …

Member Avatar for joanelaine
0
176
Member Avatar for Aarav

Hi, I have built an application using java programming and I want to write MySQL table data to excel sheet by using Apache's POI libraries and MySQL connector in java. I have explored many [mobile development blogs](findnerd.com/NerdDigest) for my previous query on Android Programming & get a satisfactory solution. I …

Member Avatar for Tarek_2
0
360
Member Avatar for Angela_6

Write an application that displays a series of at least four survey questions; the survey can be on any social or political topic you want, and each question should have at least three possible numeric-choice answers. At the end of the survey, use a dialog box to ask whether the …

Member Avatar for JamesCherrill
0
166
Member Avatar for PulsarScript

Hi all would like to ask question about JPA syntax ,which of this 2 versions of code syntaticly better and safer? public static Prices getPriceById(int id){ EntityManager em = DBUtil.getEntityManagerFactory().createEntityManager(); return em.find(Prices.class, id); } or this version : public static Prices getPriceById(int id){ EntityManager em = DBUtil.getEntityManagerFactory().createEntityManager(); try{ Prices pr …

Member Avatar for JamesCherrill
0
205
Member Avatar for Avnish_2

Please tell me the all the implanted things that how to start because I am new in software development field. thank you..

Member Avatar for Reverend Jim
0
88
Member Avatar for divinity02

hi all it has been a very long time since I have written anything in here everythings has sicne change, i cant even find the java forum in here but anyway, my problem, i am practing on dis program, jus started it actually. I have two classes only, as I …

Member Avatar for divinity02
0
372
Member Avatar for gregkawere

i am very keen to learn how to develop mobile apps, but i want to master one programming language. i hear you can design mobile apps for android, windows & ios using Java. Is this true, if you can someone explain the details of doing this in each platform

Member Avatar for Andrew_35
0
637
Member Avatar for JamesCherrill

This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 solutions to printing the contents of a multi-dimensional array of arbitrary dimensions - although in fact all the solutions will …

Member Avatar for JamesCherrill
1
461
Member Avatar for javaAddict

Hi All. This is my first code snippet. I don't know how practical it is, but I came up with the idea, so I wanted to do it. Assuming you have an array. You use a for loop to display its data. For 2D arrays you use 2 for loops. …

Member Avatar for JamesCherrill
0
926
Member Avatar for djabri
Member Avatar for Fola_1

We have a client who needs to make the cash withdrawal option of their ATM's Inactive once the ATM runs out of cash or if there is a cash jam. Can anyone help with this?

Member Avatar for JamesCherrill
0
213

The End.