Search:

Type: Posts; User: JavaPF

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    9,122

    [SOLVED] Re: JAVA Calling Class

    Also, I personally would use:



    System.out.println(b.getStudNum());


    Instead of including the new line char in the String.
  2. Replies
    4
    Views
    9,122

    [SOLVED] Re: JAVA Calling Class

    The value 0510180 is too long to be an Integer.

    I suggest handling it as a String like this:



    public class Student {
    String Name, Course;
    String StudentNumber;
  3. Replies
    4
    Views
    9,122

    [SOLVED] Re: JAVA Calling Class

    Hello tazjaime and welcome to the forums :D

    I just compiled the code you posted above and it all works fine?

    I get the output:



    charles
    cB.S. Computer Science
Results 1 to 3 of 3