Search:

Type: Posts; User: JohnJohnson123

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    1,322

    Re: Second largest

    I thought it was more fun like this. I saw it on stackverflow.

    Thanks for the ongoing support.
  2. Replies
    6
    Views
    1,322

    Re: Second largest

    It did not work out for me.

    How about this. Find the three largest numbers and print them out.



    public class Minmax2 {
    public static void main(String[] args) {

    int max =...
  3. Replies
    6
    Views
    1,322

    Re: Second largest

    StdIn is used in my textbook, Introduction to programming in java. It's a library thing for all kinds of inputs.

    Your right. But I think I can use it like that and press ctrl+enter

    --- Update...
  4. Replies
    6
    Views
    1,322

    Second largest

    Hi.

    I'm trying to find the largest and the second largest number in vector. But I can't.

    Can you help?



    public class Minmax{
    public static void main(String[] args) {
Results 1 to 4 of 4