Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
44% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
5
Posts with Downvotes
3
Downvoting Members
3
1 Commented Post
0 Endorsements
Ranked #2K
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for pumpkin_pub

so i have a little issue here. i have a program that creates a list of random numbers, for sake of example here it is: [CODE] public class RandomSeq { public static void main(String[] args) { int n = Integer.parseInt(args[0]); for (int i = 0; i < n; i++) System.out.println(Math.random()); …

Member Avatar for ashok2004_urs
0
327
Member Avatar for Tabone3

Hi, I'm a bit new to java and I would like to make a program that save's and load the saved data that the user had inputted in my java program. For example I done a sort of a Bank System and when I close my program and restart it …

Member Avatar for Tabone3
0
178
Member Avatar for jemz

hello can you help me when i click the add button it will not add to the database.it will generate an error..can you help me please hoping for your positive responds...here's my code,please see my attachment.... [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.JPanel.*; import java.sql.*; public …

Member Avatar for jemz
0
203
Member Avatar for rast1940

Hello, I need to read in objects from a binary file and place those objects into an ArrayList. Not sure on how to go about adding the objects - this is what I have so far: [CODE]ArrayList<MailingLabel> arrayOfMailingLabels = new ArrayList<MailingLabel>(); try { ObjectInputStream in = new ObjectInputStream(new FileInputStream("labels.dat")); while …

Member Avatar for jwenting
0
102
Member Avatar for JimD C++ Newb

Hi, I have a rather large binary file that I am attempting to read in, but I only want to read in the first 100 characters or so. I've tried searching the internet for help or an example, but I've only found examples that read in the entire file...and this …

Member Avatar for balmark
0
106
Member Avatar for Privoxy

So doing my first year of software engineering at Uni and am having a little trouble with the old Java, Basically I need to use the Calendar class to call todays date, and then store it in a variable, Iv stumbled upon this bit of code but don’t really understand …

Member Avatar for ~s.o.s~
0
107
Member Avatar for adity

Hi, I wanted to change the color of the first two rows of a Jtable .How do i achieve that? I have written the follow: [CODE] TableCellRenderer render1 = null; render1 = new myCellRenderer(); [/CODE] And the renderer is written as : [CODE] class myCellRenderer extends DefaultTableCellRenderer implements TableCellRenderer { …

Member Avatar for balmark
0
90
Member Avatar for komyg

Hi, I've created a Web Service application inside Jboss 4.2.2-GA and I want to set up the jboss log4j configuration so that my Web Service logs inside a custom log file (not inside the server.xml). To do this I've altered the jboss-log4j.xml file to create another appender. This file is …

Member Avatar for komyg
0
193
Member Avatar for linkinmal

I'm trying to develop an editor which you can insert text and draw shapes on. To do this, I'm using a JPanel as the main panel, and listening to mouse actions I add new JPanels into it. I draw the shapes on the small panels using getGraphics(). But the main …

Member Avatar for linkinmal
0
810
Member Avatar for kvass

The commonly used syntax: [CODE=Java] public class Foo { private int x; public Foo(int x) { this.x=x; } } [/CODE] Is actually "flawed." If you have an anonymous inner class inside the Foo constructor (i.e. if this were a GUI code and you were adding an ActionListener) then the private …

Member Avatar for javaAddict
0
173
Member Avatar for avinash_545

hi everybody!!!!!!! can anyone tell me how do we test the data type of variables in java, like if a variable is a string, the system prints out that this variable is string or not. more especially how can we test this on primitive data type? waiting for your replies!!!

Member Avatar for javaAddict
0
266
Member Avatar for devstarter

[code] public boolean isFull(){ //generally full if(parcelIsFull() || hcparcelIsFull() || noSharingParcel()) return true; } [/code] I want to know why i get this error missing return statement I have the value written as 'true' boolean as the returning value.

Member Avatar for balmark
0
138
Member Avatar for devstarter
Member Avatar for balmark
0
365
Member Avatar for kavitha0904

im new to java ..im learning myself.. i want the source code for 12hr to24hr conversion of time.. ie if i give input 1pm then my program should gives this in 24hr version as 13hr..... i hope u pepole will help me.... Regards kavitha

Member Avatar for balmark
0
229