- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Computer Repair, **Trying to learn how to code**, WoW
- PC Specs
- COOLER MASTER Storm Scout ASUS P7P55D EVO Intel Core i7-860 Lynnfield 2.8GHz SAPPHIRE Radeon HD 5830…
Re:
I'm curious. Why is so much code in this forum formatted like this [CODE]if (something) { do something } else { do another thing }[/CODE] rather than [CODE]if (something) { do something } else { do another thing }[/CODE] The first version is harder to read and takes up more … |
|
Re:
The attached image is the example of .xls file that I want to import those data to mysql database using Java. Any help I get will be very much appreciated. |
|
Re:
the output of this program should return the number of letter in words [CODE]/** * @(#)Coun.java * * * @author * @version 1.00 2011/11/18 */ import java .util.Scanner; public class Coun { Scanner input=new Scanner(System.in); public static void main(String [] args) { System.out.println("Enter a string: "); String[] arr = input.nextInt(); … |
|
Re:
Guys i wanted to connect Java Application with MySql database.I have written a Java Programme.I have already created the database also.But it doesn't connect with the Database.This is my code.[CODE]import java.sql.*; public class check { public static void main (String[] args) { Connection conn = null; try { String userName … |
|
Hi All, If I read in from a file and populate an array with its data(all strings), how can I control the way it prints(to the console for example).Right now it just prints a huge long line in the console of all its contents. I figure I will have to … |
|
Re:
I have to create a GUI that when I click on the buttons it changes the color of the background. Below is what I have but I can't figure out what code to put in and where to change the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import … |
|
Re:
can we find a particular image whether exiting or not within a video file.......... i.e imagine i've a picture of a particular person and a video file....and i've to find whether that person in the picture exits or not somewhere within that video file........... |
|
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:
Hello, I am on an introduction to software development module. I need help creating an array, it doesn't have to be hugely complex only basic as it is at introductory level, but still I am finding it difficult, [U]please can someone help it will be gratefully appreciated.[/U] [B]This is the … |
|
Re:
i m making a BMI calculator GUI which calcuates weight in corresponding to height shown on slider but there is some error in program. problem lies in following line [CODE] int value = slider.getValue(); int weight=0; if (if buttonGroup.getSelected()=="Male") { weight=value/28; } else if (buttonGroup.getSelected()==Female) { weight=value/30; } System.out.println("weight");[/CODE] |
|
Re:
I m new.I am not getting any result for Number of A Number of B Numbers of C Number of D number of F for A,B,C,D,F i always get 0. [CODE]import java.util.Scanner; public class ExamScores1 { public static void main (String[]args) { String a; int count= 0; int grade=0; // … |
|
Re:
Hi i am looking for following output.I am just getting 0 for a,b,c,d,f. total no of grades Number of A's Number of B Numbers of C Number of D number of F [CODE]import java.util.Scanner; public class ExamScores { public static void main (String[]args) { String a; int count= 0; int … |
|
Re:
I am a begining software engineer in college and have been stumped by a small problem. The assignment is to "encrypt" any text entered. All we have to do is make capitals lower case and vice versa, additionally we have to make a's z's, b's y's and so on. //import … |
|
Hi all, I have a main GUI class as seen here: [CODE] import java.awt.*; import javax.swing.*; import javax.swing.border.*; /* * Class is to communicate with various other classes in the program to * create a roster for user based on their selection on GUI. */ public class MainGUI extends JFrame … |
|
Re:
how to write the math function f(x) with Java where f(x) = y |
|
Hi all, If I write a java program inside of eclipse, how can I run that program outside of it, rather than just hitting the run button in eclipse. So, I can give others the program to run on their computers. Thanks! |
|
Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should … |
|
Hi All, The GUI works as intended to. But I was wondering if some of you java gurus could look over my code and maybe give me some tips on how I could have written this code better. Thanks! [B]GUI CLASS: [/B] [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; … |
|
Hi all, I am having trouble with class communication to reset some textfields through event handling. Any help would be appreciated. Here is a portion of my code. [B]The class that contains the textfields that I wish to use a reset button for:[/B] [CODE]import java.awt.*; import javax.swing.*; import javax.swing.border.*; public … |
|
Hi All, I was having trouble with getting my program to display all the necessary conversions. Here is a snippet of the code to help explain what I want to do: [CODE] private class CalcListener implements ActionListener{ public void actionPerformed(ActionEvent e){ String centInput, inchInput, meterInput, yardInput; double cent, inch, meter, … |