Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How do I output information from my Method to the user as a table?

  1. #1
    Member
    Join Date
    Aug 2020
    Posts
    42
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Post How do I output information from my Method to the user as a table?

    For my program, I'm trying to use data from a file that will take the numbers(which stand for Celsius) and use them to calculate standard deviation/convert to Fahrenheit. I've already created the methods for the calculation but I'm not sure what is the right way of outputting the information from those methods to the user when I run the code.

    I've tried:
    sDeviation(celsius);
    double fDeviation = sDeviation(celsius);
    Last edited by HyperRei; August 22nd, 2020 at 01:51 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How do I output information from my Method to the user as a table?

    right way of outputting the information from those methods to the user
    What are the user's capabilities or requirements for reading the data?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Aug 2020
    Posts
    42
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Re: How do I output information from my Method to the user as a table?

    All the user has to do is run the code. My job is to output certain information using data from a file. Here's a GitHub link that shows what I have thus far along with what information is on the input file.

    GitHub: https://gist.github.com/NexusRei/115...81b9607e1ac131

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How do I output information from my Method to the user as a table?

    Please post the code here, not at a link.

    Be sure to wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Simple Table output program trouble
    By bruttix212 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 28th, 2018, 08:50 PM
  2. I'm trying to output my results in a table. Can you help?
    By alexempirePSG in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 8th, 2014, 10:53 PM
  3. How to output information entered in JOptionPane Dialogue Boxes?
    By StaffordEmpire in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 25th, 2014, 03:00 PM
  4. jdbc integration with Gui to show user information retrieved from mysql
    By harem_najat in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 22nd, 2013, 07:25 PM
  5. how could I output to a text area the output of a method
    By mia_tech in forum What's Wrong With My Code?
    Replies: 6
    Last Post: July 12th, 2012, 07:49 PM

Tags for this Thread