[java programming] Re: Lab 1036 Exercise 1

2009-07-27 Thread David Seto
Correction mistyped the For I meant for. I updated the code to this (Thanks Haris) But when I read the exercise it mentions I have to use another for loop? Also I misinterpreted the exercise - I thought they wanted 0 100 1 101 Etc.. 4. (For your own exercise) Modify JavaArray.java as following,

[java programming] Re: Lab 1036 Exercise 1

2009-07-27 Thread Haris
"David" Here is the solution for array public class JavaArray { /** Creates a new instance of JavaArray */ public JavaArray() { } /** * @param args the command line arguments */ public static void main(String[] args) { // Declare and create int array whose s

[java programming] Re: Lab 1036 Exercise 1

2009-07-27 Thread Sech21
your code is: For(int a=100; a wrote: > This is embarrassing I can't even figure out to modify the original > MyJavaArrayProject. > > When I ran the program all I get is successful build. > > Same thing with debug. My modifications are displayed in green. > > Just before the for loop that prints

[java programming] Re: Lab 10-10

2009-07-27 Thread Sech21
Try to read the API! Then you really gonna learn exactly how it's working! On Jul 27, 1:47 pm, Mahmoud Abou-Eita wrote: > Hi all, > I got stuck with the Home work exercise on the lab 10-10, > so if anyone could tell me how to do it would be great > and I've done SetSystemroperties.java, > but I

[java programming] Re: Lab 1036 Exercise 1

2009-07-27 Thread miga
On Jul 28, 12:12 am, "David Seto" wrote: >         // Declare and create int array whose size is 10 >        int[] age=new int[10]; > >        int[] ages = new int[10]; You should initialize the values of each term of the arrays before being able to print them. You've missed a loop for each ar

[java programming] Re: Lab 1036 Exercise 1

2009-07-27 Thread Pavel Carrillo
hi David I think the problem is that age.length is equal to 10 so the condition (a This is embarrassing I can’t even figure out to modify the original > MyJavaArrayProject. > > When I ran the program all I get is successful build. > > Same thing with debug. My modifications are displayed in green

[java programming] Lab 1036 Exercise 1

2009-07-27 Thread David Seto
This is embarrassing I can't even figure out to modify the original MyJavaArrayProject. When I ran the program all I get is successful build. Same thing with debug. My modifications are displayed in green. Just before the for loop that prints out the value of each entry of the ages[] array

[java programming] Re: Lab 1036 Exercise 1

2009-07-27 Thread miga
On Jul 28, 12:12 am, "David Seto" wrote: >         // Display the value of each entry in the array > >         For (int a=100; ahttp://groups.google.com/group/javaprogrammingwithpassion?hl=en -~--~~~~--~~--~--~---

[java programming] Re: Input from Keyboard

2009-07-27 Thread Andre Brown
I'm not entirely certain how your questions about the console relate to your first point about getting input via buffers. Java newcomers will have to deal with Exceptions. They are part of what make the platform and language robust. That said, I don't see how introducing a newcomer to the consol

[java programming] Re: array example program

2009-07-27 Thread Paul
import java.util.Collection; public class Main { /** * This programs works in Java 5.0 o later. * * The method main must be declared public, static, and void. It must accept * a single argument that is an array of strings. This method can be * declared as either. {..

[java programming] Re: is there an online class that would be a like a "mySQL with passion" tutorial

2009-07-27 Thread miga
On Jul 27, 10:05 pm, Bob wrote: > Does anyone know if there is an online class that would be a like a > "mySQL with passion" tutorial? > > Thanks, > > After I finish the Java class -- I want to focus on mySQL Not that I know, but you may explore the various xxx with passion courses, especially

[java programming] is there an online class that would be a like a "mySQL with passion" tutorial

2009-07-27 Thread Bob
Does anyone know if there is an online class that would be a like a "mySQL with passion" tutorial? Thanks, After I finish the Java class -- I want to focus on mySQL --~--~-~--~~~---~--~~ To post to this group, send email to javaprogrammingwithpassion@googlegroups

[java programming] Lab 10-10

2009-07-27 Thread Mahmoud Abou-Eita
Hi all, I got stuck with the Home work exercise on the lab 10-10, so if anyone could tell me how to do it would be great and I've done SetSystemroperties.java, but I can't get what exactly each line of code does! so much appreciated if anyone could help me figure it out. Regards Mahmoud Abou-Eita

[java programming] Re: LAB1021 Question

2009-07-27 Thread ados1...@gmail.com
Yes. OS at run time decides what should be the output. It is an internal OS Concept ;) Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a day." On Mon, Jul 27, 2009 at 11:17 AM, Alfredo Torres < alfre

[java programming] Re: Lab 1025

2009-07-27 Thread miga
On Jul 22, 5:25 pm, JKid314159 wrote: > Re: Polymorphism >   > Dear Group Manager: >   > Is this link still up to date.  I am having trouble viewing it.  Says Page > Not Found!http://liemur.com/Articles/PolymorphismAndJavaInterfaces.html See a similar article from artima: http://www.artima.com

[java programming] LAB1021 Question

2009-07-27 Thread Alfredo Torres
Hi all, I am in lab1021 Exercise 2 Implement Runnable interface When i run the RunnableThreadTest1.java i have the output: run: AABBCCBUILD SUCCESSFUL (total time: 0 seconds) but in the Figure-2.13: Result of running RunnableThreadTest1 application the ouput is ACBACBA

[java programming] Regarding questions on 1036 and Sudhir's working code

2009-07-27 Thread Joseph Smith
Hello All, After entering Sudhir's working code into Netbeans IDE 6.51, the following two statements prompted errors: String firstName[] = name[j].split(""); if((j==0)||(max.length()http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~--~~~~--~~--~--

[java programming] Re: array example program

2009-07-27 Thread user001
Does the code at your previous post still not work?. Can u tell me which line was your 33th one? (its the one that throws the exception -- roughClass1.java file) and your JDK and JRE version; because it worked without any change when I tested it. On 25 jul, 02:00, Radhika.K wrote: > public void

[java programming] Jsp from one page to another page access

2009-07-27 Thread prabu vaikundanarayanan
hello every body this is my first post in this group i have the doubt regarding how the resultset in first page can access in seconnd page of jsp Here is first page code: <%...@page contentType="text/html" pageEncoding="UTF-8"%> http://www.w3.org/TR/html4/loose.dtd";> <%...@page import="jav

[java programming] Re: output top 3 from 1 array.

2009-07-27 Thread Maneesha Srivastava
Here you go;   public class sortArray {     public static void main(String[] args) {     int abc[] = {1,2,7,95,43,21,22,12,11};     int i;         bubbleSort(abc, abc.length); //Pass the array to be sorted and its length.         System.out.println("After sorting, the li

[java programming] array example program

2009-07-27 Thread Radhika . K
Hi, I need a example program where I can learn how to declare,access,allocate,etc a array.. With comments... Can any1 pls help me Thanks & Regards, Radhika.K --~--~-~--~~~---~--~~ To post to this group, send email to javaprogrammingwithpassion@googlegroups.com T