Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
java x 27
Member Avatar for kdmuk10

I was trying to find the smallest common divisor for the numbers from 1 to 20. I tried the following code. My problem was how to get back to the beggining of the for loop after the if test has found the number is not divisible. But then i added …

Member Avatar for kdmuk10
0
94
Member Avatar for kdmuk10

I have been teaching myself Java programming for few months now. Now i am looking for some materials which can help me develop my programming technics. It will also be useful materials to deepen my understanding to the java programming. I would appreciate to get some advise.

Member Avatar for kdmuk10
0
171
Member Avatar for kdmuk10

I am trying to do a program which does simple maths by scanning using provided three items (two number and an operator) then let the program do the calculatin and printout the result. The way i have attempted it so far (below is the code) the value of the operator …

Member Avatar for kdmuk10
0
161
Member Avatar for prem2

Hi , I want to get a String from command line argument and add the values. [code] class Sample { public static void main(String args[])throws IOException { String Given_Id=args[0];//Getting input int Add=0;; int Store=0; System.out.println("The length of the String is "+Given_Id.length());//Calculating length for(int i=1;i<Given_Id.length();i++) { Add=Given_Id.charAt(i); Store=Store+Add;//Adding values } System.out.println("The …

Member Avatar for kdmuk10
0
517
Member Avatar for kdmuk10

Here is my code, i am getting the following error message. How do i handle it? [code]package simp; import java.io.*; public class fCase { public static void main(String [] args) throws IOException { BufferedReader readObject = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your expressions here"); String userEntry = readObject.readLine(); String [] toki …

Member Avatar for kdmuk10
0
1K
Member Avatar for kdmuk10

When i was trying to run a program from the IDE, a window pops up which has anagrams as a title and requests me to enter something under "Your Guess" slot? What is happening?

Member Avatar for NormR1
0
117
Member Avatar for kdmuk10
Member Avatar for kdmuk10

I am new to java. when i try some code, i get the 'Caught ArrayIndexOutOfBoundsException: 0' message. i need help how to address the problem. the code was as follows. I am leaving out the class name (first line) [CODE]public static void main(String[] args){ try { double hours = Double.valueOf(args[0]).doubleValue(); …

Member Avatar for Ezzaral
0
63