Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~15.3K People Reached
Favorite Forums
Favorite Tags
java x 84
Member Avatar for Babyblues

Ok so here is what I have and I am stuck. It is not recognizing whether a number is even or odd. So where do I need to put the remainder operator so that it will recognize if a number is even or odd? import javax.swing.JOptionPane; // program uses JOptionPane …

Member Avatar for stultuske
0
185
Member Avatar for Maureen

I am new to programming, so please accept my apologies if this question is simple. I have a class (say called Student). I want to store the name of the student (name) and the course (course) I have declared some variables in my Student class: [code] private String name = …

Member Avatar for manjushreekaran
0
3K
Member Avatar for Kronk Vaesir

[B]Can anyone help me. I have been bangin my head on this one for two days. variable number may not have been initialized. code to enter single digit number and return largest of ten. code is as follows.[/B] [code] // Java packages import javax.swing.JOptionPane; public class Counter { // main …

Member Avatar for Ezzaral
0
3K
Member Avatar for George2

Hello everyone, Please look at the following code block, [code] public void Foo() { synchronized (lock) { //do task 1 try { lock.wait(); } catch (InterruptedException e) { // TODO Auto-generated catch lock e.printStackTrace(); } //do task 2 } } [/code] Suppose multiple threads have entered the synchronized block one …

Member Avatar for anand.g
0
178
Member Avatar for popi
Member Avatar for Rentro

I have a string that looks for example like this: "aabbccddeeffgg" I want to retreive the "ee" or the "cc" value from that string. How can I do that ? The tokenizer is not what I am looking for. I'm looking for the function that allows you to specify that …

Member Avatar for Parsu7
0
207
Member Avatar for George2

Hello everyone, When running the following block of source codes (the MMAPI library I am using is downloaded from [url]http://www.sun.com/software/communitysource/j2me/mmapi/[/url]) [Code] public static void main(String[] args) { try { Player player = Manager.createPlayer"http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } [/Code] java.lang.UnsatisfiedLinkError …

Member Avatar for George2
1
303
Member Avatar for smartdetect

hi my project involves ping multiple comps simultaneously to do that i am storing results of each comp in its designated text file for that at startup i have to clear its contents i want to know how to do that in java???????

Member Avatar for freesoft_2000
0
144
Member Avatar for freesoft_2000

Hi everyone, I have a rather silly question but please bear with me for a while. If lets say i have a string which has the contents [code] "C:\\p\\kol\\pki.txt" [/code] the thing with the above string is that if i use as an argument in a fileinputstream it will only …

Member Avatar for tigerxx
0
185
Member Avatar for BrownSuga

This is the error message I am getting and the driver and class is below it. Thank You if you can help me :) C:\My Documents\CS151\CircleSolutionDriver.java:18: cannot resolve symbol symbol : constructor Circle () location: class Circle Circle circle = new Circle(); ^ 1 error Tool completed with exit code …

Member Avatar for jerbo
0
92
Member Avatar for jerbo

Here is a good tutorial link: [url]http://www.javaworld.com/javaworld/jw-05-2002/jw-0503-java101_p.html[/url] As a matter of fact: [url]http://www.javaworld.com/[/url] Has some excellent articals.

Member Avatar for jwenting
0
83
Member Avatar for jdl44lfhs

I am new to programming and I am trying to learn, I got a book and it has some problems in it, Here is one of the problems that I would like some help with if anyone could help me through it of if you have any code that is …

Member Avatar for jdl44lfhs
0
206
Member Avatar for nanosani

Is there any good vb to java convertor available ?? or should it be java to vb convertor ?

Member Avatar for jerbo
0
140
Member Avatar for warm heart

hi there good evevning >>>>> :lol: :lol: i hope all of u is good ..... sorry but i know i am new but i face aproblem with array i don't know how to solve problem with array >>>>> i have problem that said enter name of 15 studemt and there …

Member Avatar for jerbo
0
103
Member Avatar for Vinay

Afsah Shafqat is the 14 year old girl who made the entire nation proud by breaking so many records in the field of IT, doing professional IT courses at a very young age. Afsah, in 10th grade, has been called the "Princess of Operation Badar." [img]http://img18.exs.cx/img18/289/u3qj2ee.gif[/img] She recently passed her …

Member Avatar for jwenting
0
254
Member Avatar for ultimate_fusion

might be main or another method // dont know yet int[] num1 = new int[intA]; int[] num2 = new int[intB]; public static void cal(what do i put here) blah blah and class Homework7v2 { int a=0; // i need to use this int all the way through and // it …

Member Avatar for jerbo
0
109
Member Avatar for fulmont99

Im writing an encription program and it keeps saying their are 2 missing return statements :cry: , any ideas? public class EncryptedMessage { public static final int NO_OF_LETTERS = 26; //a-z incl public static final int NO_OF_NUMBERS = 10; //0-9 incl public static final int NO_OF_CHARACTERS = NO_OF_LETTERS + NO_OF_NUMBERS; …

Member Avatar for fulmont99
0
161
Member Avatar for dncloud

How can I write a program that will read as input two strings and display the word true if the strings are the same and false otherwise. In this activity, two strings are the same if they contain exactly the same characters in the same order (i.e. 'A' and 'a' …

Member Avatar for jwenting
0
133
Member Avatar for alanna

I'm writing a program that generates 5 cards, and I need it to tell me what type of poker hand it is. I really need help with this as soon as possible, so any suggestions that you could give me would be appreciated SO SO SO SO SO much. I …

Member Avatar for alanna
0
178
Member Avatar for vyk2rr

Ando comenzando en la programacion en Java, ¿Alguien sabe por donde puedo comenzar? O podrian mas omenso intruirme acerca de las classes de java teoricamente hablando :rolleyes:

Member Avatar for alc6379
0
177
Member Avatar for ultimate_fusion

heres the start public class work { public static void main (String [] args) { int number = 1; } public static boolean ifstate() { if ( number == 0 ) blah blah } question - how do I get the second method to call on the varible from the …

Member Avatar for ultimate_fusion
0
140
Member Avatar for rick4324528

How can i move between different methods with the same class. When i programmed in VB, it was just the name of the subroutine, but i cant figure it out in java. Please put me out of my misery

Member Avatar for jerbo
0
99
Member Avatar for ancibit

I get this when I try to load my program, yet the compiler says its fine. Please help! Exception in thread "main" java.lang.NoClassDefFoundError: PIStudy$DoPolyINTest at PIStudy.<init>(PIStudy.java:51) at PIStudy.main(PIStudy.java:121) [CODE] import javax.swing.*; import java.util.Random; import java.awt.*; import java.awt.event.*; public class PIStudy { public JFrame window; public JButton name; public JButton comb; …

Member Avatar for ancibit
0
134
Member Avatar for murphyshane

//.... int vals[] = new int [12]; vals[18] = 10; catch (ArrayIndexOutofBoundsException) { //handle error ... }

Member Avatar for jerbo
0
96
Member Avatar for Ghost

Hi, I'm in URGENT need of anyone who can help me with the following TicTacToe code. When you run it, it lets you click a box. When you click a box, X appears. The, when it's O's player's turn, it will not print an O. [CODE] import javax.swing.*; import java.awt.*; …

Member Avatar for jerbo
0
85
Member Avatar for hayesmark

public class XClass { private int u; private double w; Public XClass () { } Public XClass ( int a, double b) Public void func() { } public void print() { } } XClass x = new XClass (10, 20.75); Q1. How many members does class XClass have? Q2. How …

Member Avatar for MrScruff
0
182
Member Avatar for agtmulder17

Hi, I am working on a project using Java and embedded SQL in the Java. I have gotten the SQL to successful do what I need it to (In this case, create tables and insert data into them). However, I am having a difficult time with IO. The goal is …

Member Avatar for jerbo
0
106
Member Avatar for matt_5104

I'm having a problem whereby I create an instance of a class called Calculations.class in one of my main classes, but cannot access that instance from any other class. Here is the code public class Parameters{ //code// Calculations calc = new Calculations(); //some calculations done using variables in the calculations …

Member Avatar for jerbo
0
138
Member Avatar for server_crash

I keep getting a null pointer exception with this code: It's suppose to load a text file into a textArea. [Code] JFileChooser chooser = new JFileChooser(); int returnVal = chooser.showOpenDialog(this); String getFile = chooser.getName(); if(returnVal == JFileChooser.APPROVE_OPTION) { try { FileReader filegetter = new FileReader(getFile); BufferedReader br = new BufferedReader(filegetter); …

Member Avatar for server_crash
0
142
Member Avatar for ld834

I'm having a bit of trouble working out what sort of loop to use in a program I'm writing. Basically, I have a file with 2 lists of numbers separated by ";" e.g. Name ;Magnitude 2713.0;21.546 2713.0;19.564 2713.0;20.102 2713.0;20.959 2714.0;22.031 2714.0;18.46825 2714.0;15.323 2715.0;22.808 2715.0;19.345 2715.0;21.357 2716.0;21.473 on so on up …

Member Avatar for ld834
0
99