jone kim's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
Members
Active Posts:
47 (0.03 per day)
Joined:
07-January 10
Profile Views:
1,196
Last Active:
User is offline May 23 2014 06:48 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0

Latest Visitors

Icon   jone kim has not set their status

Posts I've Made

  1. In Topic: pattern search

    Posted 11 Mar 2014

    Guys here is the attachment for my question. Sorry for the inconvenience.

    My code is this, but it is not working.

    import os,re

    fileName_path = input ("Please input the file name with location: ")
    directory = os.path.dirname(fileName_path)
    os.chdir(directory)
    
    fileName = os.path.basename(fileName_path)
    print(fileName)
    oF = open(fileName ,"r")
    
    with oF as readFile:    
        for searchpattern in readFile:        
            cnt = re.search("tempCharSearch[\s]:[\s]= [\s]\'[\d]-[\d]-[\d]\'",searchpattern,re.IGNORECASE)
            if cnt:
                print (cnt)
    			
    oF.close()
    
  2. In Topic: get input via a class and and use the input in another class

    Posted 8 Jan 2014

    When I remove radius parameter from
    float getRadius = ui1.GetInput(radius);
    


    I get the following error.

    The method GetInput(float) in the type UserInterface is not applicable for the
    arguments ()


    What is this error?
  3. In Topic: get input via a class and and use the input in another class

    Posted 5 Jan 2014

    Thank you for the quick reply. Ive some confusions though.

    I tried to go with your reply but can not make up to the outputs.

    Please can you help with the code.


    package set_01_14_pkg;
    import java.util.Scanner;

    public class UserInterface 
    {      
          float radius;
    	  Scanner in = new Scanner(System.in);
     	
    	public float GetInput(float radius)
    	{
    		System.out.println("Enter the radius of the circle");
    		rad = in.nextFloat();
    		return rad;		
    	}
    }
    


    public class GetResult {
    	public static void main(String[] args)
    	{
    		UserInterface ui1 = new UserInterface();		
    		float getRadius = ui1.GetInput(radius); // [b]getting error radius cannot be resolved[/b]
    		
    		System.out.println(" radius "+ getRadius);
    	}
    }
    


    getting the error: radius cannot be resolved
    How to pass the value of the radius to the Circle CLASS to calculate the area too.
  4. In Topic: define number of columns via user input of a table in STORED PROCEDURE

    Posted 22 Aug 2013

    View Postmodi123_1, on 20 August 2013 - 06:56 AM, said:

    You got me - a curious question - what's the business case where a user.. *A* user would be creating individual tables for themselves _AND_ defining dynamic column number?


    obviously I've the requirement.

    can you please reply me how can I do it?
  5. In Topic: getting sum of records fetched from backend via PHP

    Posted 22 Jan 2013

    Quote

    then, what have you tried?

    I can not figure how to do it?

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

jone kim hasn't added any friends yet.

Comments

jone kim has no profile comments yet. Why not say hello?