- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I swim through and around the problem at hand, observing the pieces from all angles, and building the picture. The answers to the most difficult problems sometimes come while I'm not focussing on them - sleeping or working on something else. Once I have…
- Interests
- I love the universe where we live. So vast, so enticing. I'm intrigued with the history of life on earth…
- PC Specs
- It's a reasonably old-spec Intel dual-core 2.8GHz processor with 1Gb RAM, running Ubuntu 11.04. Runs…
Re:
package student; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StudentA stud1 = new StudentA(); System.out.print("Please Enter Student Name:"); stud1.Name = scan.next(); System.out.print("Please Enter Student ID:"); stud1.StudentID = scan.next(); System.out.print("Please Enter Course:"); stud1.Course = scan.next(); System.out.print("Please Enter Student Section:"); stud1.Section = … |
|
Re:
I have two different files, fileA contains employee data (ID and townCode) while file B contains field office data (OfficeID, Town, TownCode, officeCapacity) and a town can contain more than one office. i want to distribute these employees to the offices in the town against their names evenly What I … |
|
Re:
Hi, I want to read csv (Comma Separated Values) file content in VB.Net I want read entire values in file store in the fixed blocks ( say array ) Please guide me for reading the csv file content in VB.Net. Also how to get count of the data in csv … |
|
Re:
Following code is for deleting elemnt from array but it shows NullPointerException at **if(names[k].equals(user))** ... how to remove it!!! public class del_array { public static void main(String s[]) { String names[ ] = new String [10]; names[0]="admin"; names[1]="b"; names[3]="m"; String user="b"; for(int k=0;k<names.length;k++) { if(names[k].equals(user)) { String item=names[k]; for(int j=k;j<names.length-1;j++) … |
|
Re:
Hello everyone and thanks in advance for helping me. I'm a 1st year java student in my first semester of college. Its comming towards the end of the semester and finals are starting up.. well my problem is that my java teacher decided to give us 2 projects to work … |
|
This question is a bit academic now as my contract at this place is coming rapidly to a close. But for future reference, I'd be very interested in the answer. We're talking about .Net 2.0 and Visual Studio 2005. Don't limit your responses to this platform though; I'm interested in … |
|
Re:
[CODE]private double convertLiquid (double none2 ,char unit2, char amount2) { if (unit == 1) return (amount * 33.8140227); else if (unit == 2) return (amount * 0.001); if (unit == 3) return (amount * 1000); if (unit == 4) return (amount * 0.00852167911); if (unit == 5) return (amount * … |
|
Re:
Hi all when i run the following code [CODE]TreeSet<Integer> s = new TreeSet<Integer>(); TreeSet<Integer> subs = new TreeSet<Integer>(); for(int i = 606; i < 613; i++) if(i%2 == 0) s.add(i); subs = (TreeSet)s.subSet(606,true, 630,true); s.add(629); s.add(630); System.out.println(s + " " + subs); [/CODE] the O/P is [606, 608, 610, 612, … |
|
Re:
Hey guys, Well I had a few questions, so I have an employee Database with id,fname,lname,dep and I wasn't sure if I should do and Employee class whit constructor and what not, and make the class read the information form the Database and then create and ArrayList<employee> and fill it … |
|
Re:
Hi all , I plan to do java certification which version should i do , please suggest me and I am beginner 1Z0-853 (OR) OCPJP 6 --1Z0-851 (OR) OCPJP 7 --1Z0-804 |
|
Re:
So my goal is to use inheritance and as you can see I inherited Point Example which has x, y as variables. Well for some odd reason my Length seems to be in correct and I'm not sure where I went wrong. Any guidance will be very much appreciated. Just … |
|
Re:
[CODE]public void mainmenu () { title (); System.out.println ("If you wish to exit press 5, if you want to go the intro press 2, and if you want to continue 3:"); do { try { procstr = c.readLine (); proc = Integer.parseInt (procstr); if (proc == 3) askData (); if … |
|
I've seen a lot of posts over time relating to importing and exporting CSV. Most of the answers involve using TextReader.readline and String.split, [B]which will not work[/B] with any but the simplest data. When you are writing for users who have the expectation that your application will work with anything … |