Search:

Type: Posts; User: lotus

Search: Search took 0.11 seconds.

  1. Thread: miglayout

    by lotus
    Replies
    1
    Views
    2,521

    miglayout

    hi, i have just started programming and have trouble importing this miglayout.jar that i downloaded from the website into my jcreator. what do i need to do to use this custom layout?
  2. Replies
    6
    Views
    78,066

    Re: reading a char with SCANNER

    because im at the final stage of my project, i have users input choice of 1 2 or 3 , but if a user inpuuts a non int number like a it gives a error, so if i want to solve these type of problems i...
  3. Replies
    6
    Views
    78,066

    Re: reading a char with SCANNER

    why do you use a char[]??? and not char myChar;
  4. Replies
    6
    Views
    78,066

    reading a char with SCANNER

    my teacher only teach to read char with system.in.read(),is there any way to read a char with scanner?? and is a String of "a" same as a char of 'a' .
  5. Replies
    4
    Views
    4,651

    Re: reading a sentence

    i tried using nextLine but it also skips to another line
  6. Replies
    4
    Views
    4,651

    Re: reading a sentence

    i figured it out when i put this static Scanner myScanner = new Scanner(System.in).useDelimiter("\r\n"); it works any idea what the .useDelimiter does?
  7. Replies
    4
    Views
    4,651

    reading a sentence

    i used .next() in my program and when i type a sentence with a spacing it goes to the next line with another prompt sentence anyone knows why?
    i will upload screenshots of the problem i have.


    ...
  8. Replies
    13
    Views
    2,545

    [SOLVED] Re: remembering the for loop initializer

    i solved it thanks for help helloworld
  9. Replies
    13
    Views
    2,545

    [SOLVED] Re: remembering the for loop initializer

    if you take a look at my code(not yet completed but compilable)
    at Paste #128981 | LodgeIt!

    and run it, when you choose choice 1, it asks to create a stock portfolio, you create 1 stock and then...
  10. Replies
    13
    Views
    2,545

    [SOLVED] Re: remembering the for loop initializer

    it still do not work, it gets replaced, my friend helped me do a 2dimensional array and it worked but i am having trouble learning how it works.
  11. Replies
    13
    Views
    2,545

    [SOLVED] Re: remembering the for loop initializer

    my needs int and double types to store the amount of money input, so i cant use aaraylist
  12. Replies
    13
    Views
    2,545

    [SOLVED] Re: remembering the for loop initializer

    i have not learnt ArrayList class and also i tried doing it your way but it is still the same the array got replaced when i enter a new 1
  13. Replies
    13
    Views
    2,545

    [SOLVED] Re: remembering the for loop initializer

    what about the termination condition, because count1 is a input by user of 1-99, if the user inputs 1 for a new for loop with the condition already at 5 wont it terminate immediately
  14. Replies
    13
    Views
    2,545

    [SOLVED] remembering the for loop initializer

    for( i = 0;i<count1;i++){
    while(mod){
    stockName[i] = portFolioStockName();
    stockSym[i] = portFolioStockSym();
    unitPrice[i] = portFolioUnitPrice();
    unitBought[i] =...
  15. Replies
    2
    Views
    1,955

    [SOLVED] Re: for loop

    yes i figured it out, i used a for loop
  16. Replies
    2
    Views
    5,364

    Re: Java stock project help

    i never thought anyone would reply , but after some modifications and some advice from my school teacher,
    the program is still not complete and has some errors.i do not understand how does your...
  17. Replies
    2
    Views
    1,955

    [SOLVED] Looping of particular instruction ith times

    static void updateSharePrice(int i){//Start of updateSharePrice method

    System.out.println("Here is your current list of stocks : \n");
    System.out.print("\t\t\t\tBought Current...
  18. [SOLVED] Re: boolean help

    mod = (myInt != 0); what does this line of code actually do?
  19. [SOLVED] Modification of Boolean function in Java program

    boolean mod = true;
    for( i = 0;i<count1;i++){
    while(mod){

    stockName[i] = portFolioStockName();
    stockSym[i] = portFolioStockSym();
    unitPrice[i] = portFolioUnitPrice();...
  20. Replies
    2
    Views
    5,364

    Java stock project help

    i need help on a java project, i am still a beginner so i havent learnt alot of advanced techniques yet,i have taken a screenshot of the questions as it is hard to explain it.
    ...
  21. Re: Differences in input?

    i mean is there any difference in the input it takes? or is it that both will capture any keyboard input
  22. Difference between input.next and findInLine(".")charat(0)

    what is the difference between
    input.next() and
    findInLine(".")charat(0);
  23. [SOLVED] Re: Question

    ok i got it thanks
  24. [SOLVED] Difference in the code on changing logical operators

    import java.util.Scanner;

    class TicketPriceWithDiscount {
    public static void main(String args[])
    {
    Scanner myScanner = new Scanner(System.in);
    int age;
    double price = 0.00;...
Results 1 to 24 of 25