www.webdeveloper.com

Search:

Type: Posts; User: nvibest

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,609

    Ah, thank you. I've modified my code to...

    Ah, thank you. I've modified my code to understand a little better:


    import java.util.Scanner;
    public class CubeTester {
    //Instance variables
    private Cube c1;
    private Cube c2;
    private...
  2. Replies
    2
    Views
    1,609

    Parameter/Argument Method Passing Question

    Hello,
    I have a method:
    public Cube(String id, String faceValues){
    this.id = id;
    id.toUpperCase();
    for (int i =0; i <6; i++){
    faces[i]=faceValues.charAt(i);
    }
    faceIndex = 0;...
  3. Replies
    1
    Views
    886

    Troubleshooting Weird Error Message

    Hello all,

    This is my first post at the saloon. I've been writing a program that puts data from a .dat file into a table that I formatted. It's been going smoothly so far but recently I have been...
  4. Replies
    6
    Views
    2,659

    whole code..... import java.util.Scanner;...

    whole code.....

    import java.util.Scanner;
    public class DateCalculator {
    public static void main(String[] args) {
    Scanner s = new Scanner (System.in);
    int month;
    int day;
    int year;...
  5. Replies
    6
    Views
    2,659

    I thought I made sure that wouldn't happen by...

    I thought I made sure that wouldn't happen by having any month less than 0 or above 12 to be 'Invalid' with this code.....

    ......
    if (year < 1582){
    System.out.println("Invalid Year");
    }...
  6. Replies
    6
    Views
    2,659

    ha, thanks. What makes it bad exactly?

    ha, thanks.

    What makes it bad exactly?
  7. Replies
    6
    Views
    2,659

    So confused......else if/ to loop solution

    Hello all,

    For the past 5 or so hours:confused::mad: I've been trying to figure out how to condense this basic code that uses nextInt(); to read the first user input integer.

    import...
  8. Replies
    2
    Views
    1,982

    Math.pow/Math.sin Question

    Hello,
    I'm writing a program with an equation that involves Math.sin, and I was wondering how, exactly, do you square Math.sin. Do you write it like so......?

    A = Math.sin(Math.pow(sin, 2))

    ...
  9. Replies
    1
    Views
    1,070

    Problem Debugging Weird Error Message

    Hello all,

    For the past five hours or so I've been coding and debugging a simple input/output program and have been stuck on this one error message I keep getting. I don't know what kind of error...
  10. Replies
    2
    Views
    804

    my apologies

    my apologies
  11. Replies
    2
    Views
    804

    Help With Methods in Simple Program

    Hi,

    I've been asked to write some code that will use methods from the provided class. When run, the provided class creates a gui of a keypad of numbers, like an ATM. In this class there is a...
  12. Oh I see now. Thanks a lot.

    Oh I see now. Thanks a lot.
  13. Novice Programming w/ Random Numbers and Arrays

    Hello,
    I recently have been trying to write a simple program that involves the use of arrays and a random number generator in order to simulate rolling a six sided fair die.
    I've posted my coding...
Results 1 to 13 of 13
HTML5 Development Center



Recent Articles