Search:

Type: Posts; User: einar123

Page 1 of 3 1 2 3

Search: Search took 0.29 seconds.

  1. Replies
    10
    Views
    410

    [SOLVED] Re: Filter-Standart Input

    Habit I guess.Thanks.
  2. Replies
    10
    Views
    410

    [SOLVED] Re: Filter-Standart Input

    I'm thinking if Im using StdIn why do I need:

    int N = Integer.parseInt(args[0]);
    int compare = Integer.parseInt(args[1]);
  3. Replies
    10
    Views
    410

    [SOLVED] Re: Filter-Standart Input

    Is there another way of programming this, with the StdIn?
  4. Replies
    10
    Views
    410

    [SOLVED] Re: Filter-Standart Input

    Thanks. It's almost solved, so to speak. I have feeling the professor wont give correct for this code.

    I don't understand WHY do I need to input string(just some numbers) at the command line and...
  5. Replies
    10
    Views
    410

    [SOLVED] Re: Filter-Standart Input

    When I put some integers in args I press enter, then ctr z and out comes the error:
    Exception in thread"Main java.util.NoSouch.ElementException at Java.util.Svanner.thrown for(Unknown Source)

    Why...
  6. Re: Math.round...I need help understanding what I am doing wrong and why it's not working

    Try to compress your code a little bit, so it will be better to read.

    I'm not sure if you need to import all that stuff, try looking at that.
  7. Replies
    10
    Views
    410

    [SOLVED] Filter-Standart Input

    I'm writing a code that is supposed to filter a thread of integers so that repeated values are removed




    public class AboveBeyondPossible {
    public static void main(String[] args) {
    ...
  8. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    I did the trace. It's solved. With an if loop at the bottom.
  9. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Hi. This where I'm at right now.

    The error comes when I test for sequence 1 3 3 5 4 2 3



    package forrit;


    public class Verkefni2tplus {
  10. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Ok. I have a string in the array?

    --- Update ---

    Whitespace?

    --- Update ---

    It's the commas!
  11. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Thanks jps. I think directly. But my program is not correct. I'll put up a new post.

    --- Update ---

    The invariant is supposed to be something like this:

    1.F-->I
    2.I ^ not R}S{I}
    3.I ^...
  12. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Ok. Does anyone in Java-universe know why this code is giving 5 for this sequence:
    0,0,5,79,8,8,7,4

    --- Update ---

    Ahh-sorry-that is correct?!

    --- Update ---

    I'm wondering. This is a...
  13. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Mr.Jps. I find it so difficult to read this kind a stuff...I'll always get the sleepreading syndrome we see this, and just give up. Sort of like when I read my terrible tabing(syntax) in me last...
  14. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Ok. Is this as bad as the last one?

    And is'nt this the: We solve your homework forum?


    package forrit;

    public class Longesdecreasingttt {

    public static void main(String[] args) {
  15. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Ok. Would you give correct for doing it this way?



    public class LongestDecreasing {
    public static void main(String[] args) {
    int N = args.length;
    int[] a = new int[N];
    ...
  16. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    My problem now is that I dont ,,take'' the number in a0. But I feel like I'll have to have i=1 because if I have i=0 then I'm out of bounds....but then again I'm out of bounds at the other end...
  17. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    hahahah I'l admit that I'm forum timid
  18. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    GregBrannon. The System.out print...I'm just not cutting it
  19. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    args should be = i
  20. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    I think I'm almost there.

    How can I fix this code so that it works?



    public class VectorDecreasing {
    public static void main(String[] args) {
    int N = args.length;
    ...
  21. [SOLVED] Re: Find the the longest decreasing row of numbers in a vector

    Excuse me. Code tags? I did highlight. Do you mean like explanation in the code itself? Meesa don't understand this.

    My problem is I dont know where start really. Not asking for soloution, just...
  22. [SOLVED] Find the the longest decreasing row of numbers in a vector

    Just started to work at this problem.

    Any suggestions?





    public class LongestDecreasing {
    public static void main(String[] args) {
  23. Thread: Distance

    by einar123
    Replies
    22
    Views
    295

    [SOLVED] Re: Distance

    Yes it's solved. It's supposed to be like this

    Your a big help. Thanks. Now it's on to the next.... After a good nights sleep.
  24. Thread: Distance

    by einar123
    Replies
    22
    Views
    295

    [SOLVED] Re: Distance

    Only one error left that has been with me all the time.
    N is just some number or numbers, proferable N>0.
    I have to sqare the distance and print it out.
    GregBrannon are you online like 24h?)...
  25. Thread: Distance

    by einar123
    Replies
    22
    Views
    295

    [SOLVED] Re: Distance

    I'm taking a course. Apparantly my professor only wants to see that I can apply the formula. Which I have done. But I wonted the code to work.




    public class Euclediand{

    public static...
Results 1 to 25 of 51
Page 1 of 3 1 2 3