Search:

Type: Posts; User: mick.bhattarai

Search: Search took 0.27 seconds.

  1. Replies
    11
    Views
    700

    Re: confused and seeking advice

    I know a loads of people learn programming languages from "Internet Resources"(I too am learning JAVA this way). However, for someone who is new the concept of OOP(Object Oriented Programming), I...
  2. Replies
    4
    Views
    1,099

    [SOLVED] Re: Grid Pattern problem:

    Ok I was finally able to rectify the problem by including the "break"(yeah i am dumb enough to exclude it, :p). However I still have a major logical error which you can read below.

    so my code is:...
  3. Replies
    4
    Views
    1,099

    [SOLVED] Re: Grid Pattern problem:

    Thank you for your response. I looked at the problem again and came up with a sound logic(atleast I think its sound, but dunno whether it really is or not).

    This is my refined code:


    import...
  4. Replies
    4
    Views
    1,099

    [SOLVED] Grid Pattern problem:

    My Code:



    import java.util.Scanner;
    import java.util.Random;

    public class turtle {

    public static void main(String args[]){
  5. Replies
    8
    Views
    1,112

    Re: 2 errors I can't understand

    Helloworld922, what you have wrote is perfect example of the way the data type should be taught in any languages and is very insightful, however one thing I want to point out is that, it seems though...
  6. Replies
    8
    Views
    1,112

    Re: 2 errors I can't understand

    I don't know whether to ask this here or not, but because I see its relevant, I am going to ask it anyways. I come from c and am very very new to java however in c we were always taught to refrain...
  7. Replies
    6
    Views
    2,144

    [SOLVED] Re: decimal to binary problem

    i dont think initializing binarray dynamically is going to help me with this program, specially [decnum / 2] because the array size is pretty much the number of integers a converted binary will have ...
  8. Replies
    6
    Views
    2,144

    [SOLVED] Re: decimal to binary problem

    You do realize that i am trying to store the binary as an integer(even though it seems to be the wrong way to solve this problem), don't you? so the "System.out." method(which seems more like the way...
  9. Replies
    6
    Views
    2,144

    [SOLVED] Re: decimal to binary problem

    thank you for your reply,

    i assigned only 16 array size because for now i just want to check the conversion till 4 digit decimal (i.e. 9999) which should ultimately produces a 15 digit binary(but...
  10. Replies
    6
    Views
    2,144

    [SOLVED] decimal to binary problem

    my code:





    public class d2b {

    private int decnum, modnum, quotnum, count = 0, tot, binarray[] = new int[16], convnum, alter = 1;
Results 1 to 10 of 10