32,199 Topics

Member Avatar for
Member Avatar for Khalida_1

Following is my code effort.... I want to read first line of file(comma separated) & then create table in JavaDB but stuck here... Please someone help me how to do next???? public class DatabaseDAO { public void FileRead(String st) throws ClassNotFoundException, SQLException, IOException{ String []tokens=null; try{ try (FileReader fr = …

0
103
Member Avatar for Doogledude123

Looking for complete code snippets to read through and try to understand. Post them below and I'll post back with what I think it does.

Member Avatar for JamesCherrill
0
146
Member Avatar for cool_zephyr

Hey everyone, I have the following list in my code public class order { private float amount; public float getAmount() { return this.amount; } } and in main function I have the following list List<List<Order>> ordersList I want to iterate the list through Streams in java 8 in order to …

Member Avatar for cool_zephyr
0
256
Member Avatar for muthu1802

I am able to read 4byte data using byteBuf.getInt() and same way till 8 bytes I am using getLong. I am not able to read 16 byte data. when I googled I understand that java BigDecimal will support 16 byte data. Could any one please help on reading 16 byte …

Member Avatar for JamesCherrill
0
211
Member Avatar for DarkRm

Hi everyone I am new with you. I study in the university, they teaching us many programming languages. I wont you to help me to found the best to focus on. thank you by the way I am good in java ...

Member Avatar for rubberman
0
314
Member Avatar for Violet_82

HI guys, as mentioned in my revious post, I'll redo my wordCount application using the GridBagLayout approach. The functionality of the application hasn't changed at all: I've only removed the various Jpanels and, for simplicity, used only the JFrame and attached all the comonents to the JFrame. I've had a …

Member Avatar for Violet_82
0
1K
Member Avatar for divinity02

hi everyone oh gosh imma know allyuh probably get fed up of me. I am building this game, well it is the same game as in my last post. I decided to delete everything and do it over just to figure out my logical error and boi when i really …

Member Avatar for JamesCherrill
0
276
Member Avatar for writerervin

i had an idea to create an epub editor that I can use on android or on desktop using java. can someone tell me where would be a good place to start? I already have ebooks on learning java.

Member Avatar for rproffitt
0
101
Member Avatar for LibraryCode

Hi all i need a help to develop[e sequance diagram in Rational Rose or Visual Paradigm ,have use case ready.If this this is the wright place to discuss it,please let me know and i post my use case.I am new to sequance diagrams.Thanks

Member Avatar for JamesCherrill
0
298
Member Avatar for Trevor_5

it gives me a arithmeticException on this line System.out.println("\nTotal = " + dSum + " - Average " + (dSum/divider) ); import java.util.*; public class Lab1A{ public static void main(String [] args){ Scanner input = new Scanner (System.in); int [] k = new int [20]; int [] d = new …

Member Avatar for Trevor_5
0
155
Member Avatar for divinity02

hi everyone, james, stultuske I am trying to build this multiple choice math game, it is my individual assignment and I have less than a month to finish this and i really need the help as quick and as fast as possible right now the game is not running as …

Member Avatar for Taywin
0
332
Member Avatar for nadiam

Hi. im doing some exercises and im confused as to what its asking me to do. Problem: write a program that displays the average and highest mark based on the sets of marks entered. values less than 0 and greater than 100 should be ignored input: a list of input …

Member Avatar for JamesCherrill
0
162
Member Avatar for Asmat_1

Hi, I am a beginner in Java Programming. I am working on an assignment which includes Circular shift of the words inside a string. I could find a lot of stuff about circular shift of numbers or characters but I have no idea about circular shift of complete words. As …

Member Avatar for Taywin
0
458
Member Avatar for Nick_10

Now that Java cannot be compatible with browsers like Google and FireFox, so many tools working fine before now cannot be launched normally. I used to take Screenr to record my fancy videos and share with friends. And before long it has announced that Screenr will retire and will be …

Member Avatar for harshalone
0
703
Member Avatar for gpellis

Alright, I am taking a summer course on Operating Systems and it has been a while since I took Java. I am trying to re-learn everything that I have forgotten. In my field, Java was only required as an introduction class and therefore my level of programming in a computer …

Member Avatar for April Jam
0
783
Member Avatar for samantha2015

I try to implement this oauth2 config in my web application https://github.com/ksoumi/SpringSecurityOAuth2. The only difference is that he used an authentication manager with hardcoded username and password. I already have a login with spring security. I have merged only the oauth2 config in my spring-security.xml. I get HTTP status 404 …

Member Avatar for samantha2015
0
1K
Member Avatar for nadiam

Hi. Im doing a few exercises because I have a test tomorrow (Wish me luck!). This particular exercise asks for a menu calculator. The Menu is like: 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Exit Im using do..while and the switch case is in the do..while. and im …

Member Avatar for Violet_82
0
286
Member Avatar for noobjavacoder

Can someone help me figure out why is this not working..... The program supposse to take the data i load into the hashmap from the file and look for the user enters. and suppose to output the answer based on the case. thanks import java.io.File; import java.util.HashMap; import java.util.Scanner; import …

Member Avatar for stultuske
-1
158
Member Avatar for gavriela

Hello, I'm in a beginning Java class, and I am lost :( My homework calls for me to write a program that takes an integer (of unknown length) and prints it one digit per line, like: 5 6 9 8 6 4 3 I have been googling this for hours …

Member Avatar for stultuske
0
5K
Member Avatar for divinity02

hi all this is my individual assignment, it is math multiple choice game program in java. it have to random numbers got the random number but it is supposed to generated two different answer but instead it generated the same numbers for the answer, how do i fixed that. the …

Member Avatar for divinity02
0
445
Member Avatar for nitin1

I have read few articles on google but I am still confused when to use what. I have come across checked and unchecked exceptions. I have one exception which I need to define. Let say, when xyz is null, I need to throw the inconsistentcyException which I will catch in …

Member Avatar for JamesCherrill
0
227
Member Avatar for Violet_82

HI guys, I'm trying to build a small GUI application where users can input text (in a JTextArea) and by pressing a button, you get a summary of how many times each word in the text has occurred. So here come the questions. First, the GUI itself. The way I …

Member Avatar for Violet_82
0
588
Member Avatar for Lau_1

Hello, i faced some problem in building the android calculator. The problems like this: 1) If i click 2 + 3, it worked well, and screen will show the 5.** BUT! **when i clicked + and + and + and +...... it will continuosly add the answer. How can i …

Member Avatar for BenWard
0
421
Member Avatar for katie6580

I am getting my program to compile but it will not run. It is supposed to take a three digit number, reverse it, then subtract and add the original and reverse number. Why is this not printing out? Code: public class Rev { public static void main(String[] args) { int …

Member Avatar for Rahul47
0
177
Member Avatar for Trevor_5

i have to write a code that has a random number generated between 1-100 and the user has the choice to keep the number, discard the number and quit the program. and when the user quits the program displays the numbers kept and discarded, but i dont know how to …

Member Avatar for JamesCherrill
0
312
Member Avatar for noobjavacoder

Java program reading from 2 files. so i'm creating a program for u.s population by state per 2010 census. Below is the question: create a program that will read from two files and fills two HashMaps to find the population (according to the 2010 census) of an individual state or …

Member Avatar for JamesCherrill
0
380
Member Avatar for Mushfik

How can I add parameter to this <a href="javascript:;" Or is there any way to post data on the same page on that link above Thanks

Member Avatar for Taywin
0
229
Member Avatar for LibraryCode

Hi i have a question how do i update database ,once i press on the field it gets active for adding :here is my form : ![DisplayRecord.png](/attachments/large/4/7e05003e5ddcb9618f811af6be38b532.png "align-center") And here my code so far ,i try to code the update button,but it does updates the field,but not the database. package …

Member Avatar for stultuske
0
293
Member Avatar for angellove40

[B][/B][CODE] import java.applet.*; import java.awt.*; import java.awt.event.*; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.io.*; import java.security.*; import java.lang.*; import java.math.*; import java.util.*; import java.security.spec.*; class md5 { public static void main(String args[]) throws Exception { DataInputStream ds=new DataInputStream(System.in); System.out.println("Enter the Message to be hashed...."); String m=ds.readLine(); BigInteger hshm; hshm=hshcall(m); System.out.println("After Hashing …

Member Avatar for Karl_3
0
2K
Member Avatar for burhanahmed92

List Fragment height is not working properly, it only shows 1st row of list, other rows of list dont show. I used wrap content for height but not working. If i run Fragment directly it shows all rows but if i add fragment in my main activity its show single …

Member Avatar for peter_budo
0
634

The End.