32,204 Topics

Member Avatar for
Member Avatar for nickcolb

Hey guys, I need some help with this coding. I feel like it's something simple so hopefully someone can figure it out. I know for certain that it has to do with float-int conversion problems, and I feel like once I figure that out the rest should fall into place. …

Member Avatar for JamesCherrill
0
183
Member Avatar for Johanng83

Hi everyone, I'm new to Java and i have a simple question but i don't understand it, can someone help me pls? In this exercise, we will use the String class to manipulate string variables. Write a program that reads in two String variables from the user and store in …

Member Avatar for peter_budo
-1
102
Member Avatar for Transcendent

a) Output the date in multiple formats, such as i) MM/DD/YYYY ii) February 25, 2011 iii) DDD YYYY I'm supposed to do this: b) Use overloaded constructors to create Date3 objects initialized with dates of the formats in part (a). In the first case, the constructor should receive three integer …

Member Avatar for JamesCherrill
0
2K
Member Avatar for titan5

I have created 2 menus using JForms. I have two buttons in the 1st menu (menu1.java) I want to go to the second menu (GUI of menu2.java) whenever I press button 1 in menu1.java. How can I do that. What should I write in the actionListener func for button1?

Member Avatar for titan5
0
115
Member Avatar for miminj

Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This class should have the following public methods: A get method for each …

Member Avatar for Akill10
0
234
Member Avatar for bharath54321

Could anyone please tell me how to Delete two Dimensional array Which i created early or Delete the contents of from specified index and i want to insert some other values in the same index..........

Member Avatar for bharath54321
0
139
Member Avatar for MeandJava

Hello everybody, For a school assignment I need to save images to .ser files. Could someone explain me how i get it succesfull. The program itself creates a .ser but the content is useless (¬í NUL ENQ). Thanks in advance :). This is the method i came up with: [CODE] …

Member Avatar for MeandJava
0
1K
Member Avatar for LaurenceS1

Have been trying to learn from some old documentation that I bought several years ago but did not persevere with! Have Person class which compiles ok. The Employee class cannot find Person class in the extend statement, the BigCorp cannot find either the Person or Employee classes. All files are …

Member Avatar for stultuske
0
119
Member Avatar for end3r

Hy, I want to use some ExpandBar items in my UI, like those in SWT. I am currently using swing and unfortunately I did not find anything like this yet. So, do you know the class in swing that I can use ? ... or any other advice is greatly …

Member Avatar for end3r
0
250
Member Avatar for nickcolb

Hi, I need serious help with this code. So far everything compiles correctly but it does not output the correct change, and I've been trying for hours to figure out how to remedy the situation. All help is appreciated. This is what is being inputed: 4 1.00 .01 100.00 .01 …

Member Avatar for gunjannigam
0
96
Member Avatar for yjgstahc

Hello, I need a help how do I solve everything about Mancala. [B]PROBLEM:[/B] The game of Mancala is played by two players sitting on opposite sides of a board similar to the one above. Each of the numbered circles represent a bowl. At the start of the game each numbered …

0
73
Member Avatar for knan

Hi, I am building a simple android application that sends GPS coordinates from an Android phone to a Webserver, and the received co-ordinates are displayed one by one in the server. I think both my client and server side programs are correct, but I am not sure. Please correct the …

0
159
Member Avatar for Phinocio

I am making a text based game for my programming class, and am working on the saving system at the moment, however, when I run the save method, it overwrites the file, but doesn't insert the new data, it leaves the file blank. Here is the whole save class. [code]package …

Member Avatar for jon.kiparsky
0
150
Member Avatar for Java_tyro

Hello, Help me in writing a logic for the program: User input: [COLOR="Red"]11[/COLOR]000 0[COLOR="Red"]11[/COLOR]00 00[COLOR="Red"]1[/COLOR]01 10001 01011 Two 1's are said to be connected if they are adjacent to each other horizontally, vertically & diagonally. Need to find the largest sector of 1's in the above input string. For example: …

Member Avatar for jon.kiparsky
0
214
Member Avatar for shelexelex
Member Avatar for DDirectJ
0
78
Member Avatar for *Java*

Hi , How can I open an external program like ( word, notepad ) in JavaFrame Window ? not in external window ? thanks

Member Avatar for Ezzaral
0
194
Member Avatar for Geeko

Hi, i was hoping that someone could help me understand what graph isomorphism is and what are some of its practical application examples ?? i really don;t get it, and is it possible to code it in Java (what i mostly see is only in C or C++)...

Member Avatar for JamieLynnSEO
0
69
Member Avatar for Amillia89

Hye,i have problem with looping.... this is my coding for now. [CODE]try{ Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost/finalproject", "root", "Amillia89"); Statement stmt=con.createStatement(); // String pick = "select * from synonym where words like= "+st+"% "; ResultSet rs=stmt.executeQuery("select * from synonym where words like \""+st+"%\""); String words=""; if(rs.next()){ words=rs.getString("words"); ResultSetMetaData rsmd = …

Member Avatar for JamesCherrill
0
263
Member Avatar for imKEN

Need help on setting the values of username and password for my log-in menu: [CODE]import javax.swing.*; import java.awt.*; class Profile extends JFrame { private JPanel p,p1,p2,p3; private JTextField tf; private JPasswordField pf; private JLabel l1,l2; private JButton b; Profile() { p = new JPanel(); p1 = new JPanel(); p2 = …

Member Avatar for imKEN
0
124
Member Avatar for Ravshan

Hi, guys! My project is to create a chat software in Java. For security i must use Digital signatures+ Java Postgre sql... How to do it? Steps, codes, references, etc... HELP ME!

Member Avatar for Ravshan
0
156
Member Avatar for manish250

Hello all I have a query,may be silly but i have to clear it.IT IS REGARDING THE UPCASTING.I want to "when we can invoke the methods of base class using the object of derived class.then what is the need of assigning the subclass object to base class reference." I mean …

Member Avatar for JamesCherrill
0
149
Member Avatar for bharath54321

I have two array a[] and b[] but i want to transfer the contents into two dimensional array c[][] is that possible......... Please help me

Member Avatar for JamesCherrill
0
111
Member Avatar for stephy1

hi, I have a browse button for sending single image with other text inputs in jsp type I have chosen Multipart-Form data . I got 'parameter not set error' for blob field. I am using MySql database. I am using DefaultFileItemFactory clss [CODE] FileItemFactory factry= new DefaultFileItemFactoy(); FileUpload upload= new …

0
53
Member Avatar for gedas

hey everybody, i have a text file containing some names i place extract those names and i place it in an array an then i compare it with the input from JTextField i am able to compare them and find the values that match. what i want is if the …

Member Avatar for bharathkumar.m
0
235
Member Avatar for altayar

Hello.. I am working on this project which is to use a matrix to encrypt a string& a text file and to decrypt them as well. The matrix that I need to use is this one, but I still don't know how to make it shift each character to the …

Member Avatar for JamesCherrill
0
210
Member Avatar for venkatnams

[code] <%! public String haversine(String lat1,String lon1,String lat2,String lon2) { int r = 6371; String val=null; double dlat=((Double.parseDouble(lat2))-(Double.parseDouble(lat1))); double dlon=((Double.parseDouble(lon2))-(Double.parseDouble(lon1))); double a = (Math.sin(dlat/2)*Math.sin(dlat/2))+(Math.cos(Double.parseDouble(lat1))*(Math.PI/180))*(Math.cos(Double.parseDouble(lat2))*(Math.PI/180))*(Math.sin(dlon/2)*Math.sin(dlon/2)); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); double d = r * c; if(d>1) val= ((d)) +"km"; else if(d < =1) val = ((d*1000)) +"m"; return …

Member Avatar for javaAddict
0
171
Member Avatar for ccaatty

Hello all, I know this might sound silly to some of you, but I have created and successfully tested an app that I think would run on my phone. I mean, it runs just fine on the emulator. Now how do I install it onto my real phone? I tried …

0
71
Member Avatar for uma.kotha89

Dear IT People, I want sample code and suggesitions for do JUnit test for my servelet class. If any body done it plz send me code/give me suggestion hw to do in goole i got junit for java class.I stuggle for this past 2 days if any body please help …

0
55
Member Avatar for uma.kotha89

Dear IT People, I want sample code and suggesitions for do JUnit test for my servelet class. If any body done it plz send me code/give me suggestion hw to do in goole i got junit for java class.I stuggle for this past 2 days if any body please help …

0
54
Member Avatar for ToXSiK

Hey everyone, thanks for reading. Basically, I am using the netbeans GUI developer, and when I add a button on a jframe (We will call this JFrame1), I have the button create an object of type JFrame, called JFrame2. Now, JFrame2 contains a loading bar with updated progress information on …

Member Avatar for kekkaishi
0
73

The End.