32,199 Topics
| |
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 = … | |
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. | |
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 … | |
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 … | |
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 ... | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
[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 … | |
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 … |
The End.