Create(java.io.InputStream) in Scanner cannot be applied to (java.io.File)

Ahhh!!!
Ahem, when I try to compile the file below, "PhoneDirectory.java", I get the following compilation error message:
PhoneDirectory.java:12: create(java.io.InputStream) in Scanner cannot be applied to (java.io.File)
    Scanner fin = Scanner.create(file);After quite a bit of tweaking... I'm right back where I started. I'm a seasoned programmer, as far as concepts are concerned, but rather new to JAVA.
The error seems to be occuring where a new instance of "Scanner" is supposed to be created. It uses file I/O, and I had only used the Scanner class for the keyboard input in the past.
Looking at the Scanner class, everything seems to be right to me. I'm probably missing some simple fundamental concept, and I've been pulling my hair out trying to get it... Please help me shed some light on this situation!
=========
PhoneDirectory.java
=========
import java.io.*;
// Read a file of names and phone numbers
// into an array. Sort them into ascending
// order using bubble sort.
// Print names and numbers before and after sort.
public class PhoneDirectory {
  public static void main (String[] args) {
    PhoneEntry[] directory = new PhoneEntry[200];
    File file = new File("c:\\jessica\\phonenum.txt");
    Scanner fin = Scanner.create(file);
    int numberEntries = 0;
    // read array from file
    while (fin.hasNextInt())
      directory[numberEntries++] = new PhoneEntry(fin);
    // print array as read
    for (int i=0; i<numberEntries; i++)
      System.out.println(directory);
// sort by ordering defined in PhoneEntry,
// in this case lastName firstName
bubbleSort(directory, numberEntries);
// print sorted array
System.out.println(
"============================================");
for (int i=0; i<numberEntries; i++)
System.out.println(directory[i]);
static void bubbleSort(PhoneEntry[] a, int size) {
// bubbleSortr: simple to write, but very inefficient.
PhoneEntry x;
for (int i=1; i<size; i++)
for (int j=0; j<size-i; j++)
if (a[j].compareToIgnoreCase(a[j+1]) > 0) {
// swap
x = a[j]; a[j] = a[j+1]; a[j+1] = x;
=========
PhoneEntry.java
=========
class PhoneEntry {
// number, name entry for a line in a Phone Directory
  protected int area;
  protected int prefix;
  protected int number;
  protected String firstName;
  protected String lastName;
  public String toString() {
  // format name and phone number to printable string
    String x = lastName + ", " + firstName;
    x = x +
    " . . . . . . . . . . . . . . .".substring(x.length())
    + "(" + area + ") " + prefix + "-" + number;
    return x;
  public int compareToIgnoreCase(PhoneEntry v) {
  // alphabetically compare names in this to names in v
  // return negative for this < v, 0 for ==,
  //        positive for this > v
    int m = lastName.compareToIgnoreCase(v.lastName);
    if (m == 0) m = firstName.compareToIgnoreCase(v.firstName);
    return m;
  public PhoneEntry(Scanner fin) {
  // input a PhoneDirectory entry. Must be space delimited
  // area prefix suffix lastname firstname
    // number
    area = fin.nextInt();
    prefix = fin.nextInt();
    number = fin.nextInt();
    // read rest of line
    String name = fin.nextLine();
    // split name into lastName firstName
    int p = name.indexOf(' ');
    if (p > 0) {
        lastName = name.substring(0,p);
        firstName = name.substring(p+1);
    else {
        lastName = name;
        firstName = "";
}=========
Scanner.java
=========
    This class does input from the keyboard.  To use it you
    create a Scanner using
    Scanner stdin = Scanner.create(System.in);
     then you can read doubles, ints, or strings as follows:
    double d; int i; string s;
    d = stdin.nextDouble();
    i = stdin.nextInt();
    s = stdin.nextLine();
    An unexpected input character will cause an exception.
    You cannot type a letter when it's expecting a double,
    nor can you type a decimal point when it's expecting an int.
import java.io.*;
public class Scanner {
// Simplifies input by returning
// the next value read from the
// keyboard with each call.
  private String s;
  private int start=0, end = 0, next;
  private BufferedReader stdin;
  Scanner(InputStream stream) {
    start = end = 0;
    // set up for keyboard input
    stdin = new BufferedReader(
    new InputStreamReader(stream));
  public static Scanner create(InputStream stream) {
    return new Scanner(stream);
  double nextDouble() {
     if (start >= end)
       try {
        s = stdin.readLine().trim() + " ";
          start = 0;
         end = s.length();
      catch (IOException e) {System.exit(1);}
     next = s.indexOf(' ',start);
     double d = Double.parseDouble(s.substring(start,next));
     start = next+1;
     return d;
  public int nextInt() {
     if (start >= end)
       try {
        s = stdin.readLine().trim() + " ";
          start = 0;
         end = s.length();
      catch (IOException e) {System.exit(1);}
     next = s.indexOf(' ',start);
     int d = Integer.parseInt(s.substring(start,next));
     start = next+1;
     return d;
  public String nextLine() {
     if (start >= end)
       try {
        s = stdin.readLine().trim() + " ";
          start = 0;
         end = s.length();
      catch (IOException e) {System.exit(1);}
     String t = s.substring(start,s.length()-1);
     start = end = 0;
     return t;
}=========
phonenum.txt
=========
336 746 6915 Rorie Tim
336 746 6985 Johnson Gary
336 781 2668 Hoyt James
606 393 5355 Krass Mike
606 393 5525 Rust James
606 746 3635 Smithson Norman
606 746 3985 Kennedy Amy
606 746 4235 Behrends Leonard
606 746 4395 Rueter Clarence
606 746 4525 Rorie Lonnie

I don't see a Scanner.create() method in the Scanner class but I do see a constructor with the signature you want. Change
Scanner fin = Scanner.create(file);
to
Scanner fin = new Scanner(file);

Similar Messages

  • Installation hangs on 'createing java jar files' section

    Hi,
    On installtion of JRE 1.4, on a new Win98 installation, the installation hangs at the point, "Creating java JAR files". Any ideas on the reason for this hanging
    Regards.

    I had this same problem under Windos XP. Solved when I turned off my Norton Antivirus. It went away, and installation completed

  • How to create JAVA Class file from an exisitng JAVA file in JDEVELOPER

    Hi All,
    I have a file called abc.java and i need to generate a class for the same using JDEVELOPER. Please help me what are the steps to be followed. I'm totally new to JAVA and first time working on JDEVELOPER tool.
    Thanks in Advance !

    Being completely new to something is not an argument (or shall we be honest: an excuse?) to not read the manual.
    Just to note: I would pick Eclipse or Netbeans if you're completely new to java. You'll have more chance of finding help either in forums, mailing lists or Google searches. But if you must stick with JDeveloper, the forum is here:
    JDeveloper and ADF

  • Cannot compile Java files or create Java Project

    Hi,
    I cannot compile java files and also didn't see any option
    for creating java project using flex 2 builder.
    Actually am trying to create a FDS project with an option to
    compile on the server. I am using Weblogic 8.1 SP5 as my server.
    thank you
    sun

    hi
    this is may jvm.config file. Can anyone tell me if it is
    right because all the fields are blank.
    # VM configuration
    # Where to find JVM, if {java.home}/jre exists then that JVM
    is used
    # if not then it must be the path to the JRE itself
    # If no java.home is specified a VM is located by looking in
    these places in this
    # order:
    # 1) JAVA_HOME environment variables (same rules as java.home
    above)
    # 2) bin directory for java.dll (windows) or
    lib/<ARCH>/libjava.so (unix)
    # 3) ../jre
    # 4) registry (windows only)
    java.home=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK 2.0\jre
    # Arguments to VM
    java.args=-ea -Xmx384m
    # Environment variables we care about, whitespace-separated
    env=
    # java.class.path - use this for adding individual jars or
    # directories. When directories are included they will be
    searched
    # for jars and zips and they will be added to the classpath
    (in
    # addition to the directory itself), the jar to be used in
    launching
    # will be appended to this classpath
    java.class.path=C:\Adobe\Flex Builder 2.0 Beta 3\Flex SDK
    2.0\jre
    # where to find shared libraries, again use commas to
    separate entries
    java.library.path=
    thanks
    sun

  • Could not create Java VM to install 8.1.7 on RedHat 9

    I am trying to install 8i 8.1.7 on redhat linux 9. when I start the installer I get this error and nothing happens after it. I do have java installed on the pc. Whats the cause. I did the preinstall steps and am using the oracle account to start the installation. I got the install file from the oracle downloads site.
    [oracle@localhost Disk1]$ ./runInstaller
    Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
    [oracle@localhost Disk1]$ /usr/local/downloads/Oracle8iLinux/Disk1/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/lib/linux/native_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link
    time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM

    I did. I found a thread that said I needed to do
    export LD_ASSUME_KERNEL=2.4.1 which I did. Now the installation starts and I get
    [oracle@localhost Disk1]$ ./runInstaller
    Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
    and then get back to the $prompt after some time and the welcome screen never comes up.
    Whats wrong?

  • Could not create Java VM to start 8.1.7 install on RedHat Linux 9

    I am trying to install 8i 8.1.7 on redhat linux 9. when I start the installer I get this error and nothing happens after it. I do have java installed on the pc. Whats the cause. I did the preinstall steps and am using the oracle account to start the installation. I got the install file from the oracle downloads site.
    [oracle@localhost Disk1]$ ./runInstaller
    Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
    [oracle@localhost Disk1]$ /usr/local/downloads/Oracle8iLinux/Disk1/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/lib/linux/native_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link
    time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM

    I found a thread that said I needed to do
    export LD_ASSUME_KERNEL=2.4.1 which I did. Now the installation starts and I get
    [oracle@localhost Disk1]$ ./runInstaller
    Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
    and then get back to the $prompt after some time and the welcome screen never comes up.
    Whats wrong?

  • How do I create a PDF from a scanner that is installed on my Mac but not recognized by Adobe?

    I have recently downloaded a copy of Adobe Acrobat.  I would like to use my scanner to create PDF's through Adobe Acrobat.  The problem is that when I attempt to create a document within Acrobat, I cannot seem to chose the scanner, it is not available.  The scanner is an HP Photosmart 5510 and has been installed on this computer for years.  Please help. 

    Many of the HP Multi Purpose Units you have to Manually switch to Scanner In System Preferences > Printer & Scanners.
    Before the scanner will show up in Acrobat.

  • Create java: error reporting

    Hey all,
    Does anyone have any suggestions for how to receive more specific error messages from the compilation of java sources through sql statements? For example, I just tried compiling a piece of code and received the following error message:
    ORA-29511: could not resolve Java class
    I'm not surprised that I received the error, but it's a little inconclusive.
    Any ideas?
    Thanks,
    Jonathan

    Umm.....so....I just realized this may actually be a problem with the HTML DB interface. I had assumed it would transparently pass db error messages to the front-end. -_-;;
    I'm actually having trouble replicating this error now. Right now, when I try the following three commands I receive the following replies:
    1) Statement processed.
    2) Function created.
    3) ORA-29541: class ARDB.CalendarInterface could not be resolved
    The 'create java' statement should be returning a 'cannot find class' error.
    Hmm.....excuse the long post.
    Jonathan
    create or replace and compile java source named "CalendarInterface" as
    import oracle.calendar.soap.client.CalendaringResponse;
    import oracle.calendar.soap.client.Calendarlet;
    import oracle.calendar.soap.client.CreateCommand;
    import oracle.calendar.soap.client.authentication.BasicAuth;
    import oracle.calendar.soap.iCal.iCalendar;
    import oracle.calendar.soap.iCal.vCalendar;
    import oracle.calendar.soap.iCal.vEvent;
    public class CalendarInterface
      public static int addEvent(String title, String description, String dtStart, String duration)
           iCalendar ical   = new iCalendar();    
           vCalendar vcal   = new vCalendar();
           vEvent    vevent = new vEvent();
           ical.addvCalendar(vcal);
           vcal.addvComponent(vevent);
           String uid     = "ARDB-TEST-2";
           vevent.setEventClass(vEvent.k_eventClassPublic);
           // dtStart format: "yyyymmddThhmmssZ"
           vevent.setDtStart(dtStart);
           // Duration format: "PThhHmmM"
           vevent.setDuration(duration);
           vevent.setLocation("HQ");
           vevent.setSummary(title);
           vevent.setUid(uid);
           vevent.setXEventType(vEvent.k_eventTypeAppointment);
           vevent.setDescription(description);
           CreateCommand create = new CreateCommand();
           create.setCmdId("test");
           create.setiCalendar(ical);
           Calendarlet cws = new Calendarlet();      
           BasicAuth auth = new BasicAuth();
           auth.setName("username");
           auth.setPassword("password");
           cws.setEndPointURL("url");
           cws.setWantIOBuffers(true);
           cws.setAuthenticationHeader(auth.getElement());
           try {
              CalendaringResponse response = cws.Create(create.getElement());
           } catch (Exception ex)
             System.out.println("There was an error while retrieving a response from the Calendar server.");
           return 1;
    CREATE OR REPLACE FUNCTION addEvent (
       title IN VARCHAR2,
       description IN VARCHAR2,
       dtStart IN VARCHAR2,
       duration IN VARCHAR2)
       RETURN NUMBER
    AS LANGUAGE JAVA
       NAME 'CalendarInterface.addEvent (
                java.lang.String,
                java.lang.String,
                java.lang.String,
                java.lang.String)
                return int';
    declare
      retval   number;
    begin
      retval := addEvent('Title', 'Description', '20050817T100000Z', 'PT01H00M');
      htp.p(retval);
    end;

  • I installed windows 7 recently and also Adobre reader XI, and now I cannot open any of my previously created pdfs. Every time I get the message: Error opening the file. Access denied. What is going on?

    Recently I had to install windows 7 in my notebook because XP doesn't have more support. Before installing I backed up all my files to my external HD. Now that I instaleed windows 7 and also installed Acrobat Reader XI, I just cannot open any of my pdf files created prior to installing windows 7.
    Looking for help online, I found the solution of security and giving me access as an administrator to all my files, but it still keeps the same...
    Can some one please help me out?? I really need to work on many of this files ASAP.
    Thank you all in advance for you attention,
    Best,
    Henrique

    Can you start Adobe Reader?

  • The problem is this: In the phase "Create Java Users"

    Hello,
    I am installing Solution Manager 4.0 Release 2 (with Red Hat Enterprise Linux Server release 5.1 and Oracle 10 and my java version is: j2sdk1.4.2_14) The problem is this: In the phase "Create Java Users" I get the next error
    WARNING 2009-02-13 14:53:22
    Execution of the command "/usr/sap/PTS/DVEBMGS00/exe/jlaunch UserCheck.jlaunch com.sap.security.tools.UserCheck /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install -c sysnr=00 -c ashost=sap-vpmn -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message" finished with return code 2. Output:
    java.lang.ClassNotFoundException: com.sap.security.tools.UserCheck
    at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java:691)
    at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:600)
    at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:578)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:79)
    INFO 2009-02-13 14:53:22
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.
    INFO 2009-02-13 14:53:22
    Removing file /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/dev_UserCheck.clone.
    ERROR 2009-02-13 14:53:22
    CJS-30196
    ERROR 2009-02-13 14:53:22
    FCO-00011 The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|3|0|createJSF was executed with status ERROR .
    Thanks & Regards

    Hi,
    This problem normally arises with the wrong combination of JDK and OS and for the Linux machines, its better to use IBM Java instead of SUN java
    I remember that I have solved this type of problem by using lower version of IBMJava2-AMD64-142-SDK-1.4.2-10.0.x86_64.rpm which is SR10. You can download this version from
    http://www.ibm.com/developerworks/java/jdk/linux/download.html
    go to download _12 and then just change the sr12 to sr10 in the header url....
    FCO-00011 The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|3|0|createJSF was executed with status ERROR .
    with the higher versions of java for 64bit systems create serious stack over flow problems.....
    what I suggest you is to start reinstallating SolMan after installing IBM java sr10 version...
    Regards,
    Naveen.

  • URGENT: Problems with the CREATE JAVA command in SQL

    I am trying to publish a Java class to the database and have to use CREATE JAVA rather than loadjava for reasons I won't go into.
    However, I get the following error:
    SQL> create java class using bfile ('C:\neil', 'SkyNetworkRequestUtil.class');
    create java class using bfile ('C:\neil', 'SkyNetworkRequestUtil.class')
    ERROR at line 1:
    ORA-22929: invalid or missing directory name
    I can assure you that the C:\neil directory exists and the class exists in that directory, so what am I doing wrong?
    Hopeful thanks in advance.

    Did you try using C:\\ instead of C:\?
    If this does NOT work, then go into the directory where you have your .class file and
    use '.' as the directory specification.
    Hope this helps.

  • Error in phase creating java users during installation!!

    Hi,
    We are getting error at step "Creating java Users" while installing NW 2004s SR1  non unicode dual stack on HP Ux Pa Risc 64 bit with database Oracle 10g.
    Erro logs of file /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/sapinst_dev.log are as:
    ==================================================================================================
    ERROR      2011-07-21 13:20:37
               CJSlibModule::writeError_impl()
    CJS-30197  . For more details see output of logfile:
    TRACE      [iaxxejsbas.hpp:460]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2011-07-21 13:20:37 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0|createJSF was executed with status ERROR .
    =================================================================================================
    Also please note that we have already 1 instance (dual stack) on same host and that is running fine.
    Could someone please assist us in proceeding further.
    Regards
    Joy Garg

    Hi,
    Issue gets resolved by  extracting manualy from JAVA_DVD_DIR/J2EE_OSINDEP/J2EEINSTALL.SAR to SAPINST install directory using SAPCAR. The path of this install directory is:/tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/install as:
    > pwd
    /tmp/sapinst_instdir/NW04S/SYSTEM/ORA/CENTRAL/AS/install
    > SAPCAR -xvf /SW/NW_2004s_SR1Java_based_SW_Comp/J2EE_OSINDEP/J2EE-INST/J2EEINSTALL.SAR
    Once we have extracted the J2EEINSTALL.SAR relaunch SAPINST again and the installation continue.
    Regards
    Joy garg
    Once you will have extracted the J2EEINSTALL.SAR please launch SAPINST again and the installation will continue.

  • My old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more inportantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    my old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more importantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    You need to use the old ID and password to delete the iCloud account. After you delete the old account, you can sign in with the new ID in iCloud.
    Have you seen this.
    http://support.apple.com/kb/HT5796
    iCloud
    iOS 6 and later: Go to Settings > iCloud.
    If you signed out before changing your Apple ID, enter your current Apple ID to sign in. The data from your iCloud account will download to your device.
    If you're still signed in with your previous Apple ID:
    Scroll down and tap Delete Account. Depending on what iCloud options are turned on, you'll be asked to confirm that you want to delete data from your device. To confirm, tap Delete. (If you're using iOS 7 and have Find My iPhone turned on, you'll be asked to enter the password for your previous Apple ID. Enter the password, then tap Turn Off.) The data will be deleted from your device, but not from iCloud.
    Enter your current Apple ID to sign in. The data from your iCloud account will download again to your device.

  • My apple id attached to my itunes account has expired and i have forgotten the password that was attached to it! I have created a new apple id but cannot transfer it to my itunes which all my apple products connect up to on my mac?! HELP!

    My apple id attached to my itunes account has expired and i have forgotten the password that was attached to it! I have created a new apple id but cannot transfer it to my itunes which all my apple products connect up to on my mac with all my pictures etc on!?! HELP!

    My apple id attached to my itunes account has expired
    They don't expire. As far as anyone knows Apple IDs live on forever - if you forgot its password use https://iforgot.apple.com. Good luck with the answers to whatever security questions it asks.
    ... I have created a new apple id but cannot transfer it to my itunes which all my apple products connect up to on my mac with all my pictures etc on!?!
    Right! That's the reason you do not create a new Apple ID.
    As far as Apple is concerned a new Apple ID is a completely different user, with absolutely, positively no access to anything available to any other Apple ID.
    Concentrate your efforts on resetting the password to your old Apple ID. It has not expired, and is the only way to use all your existing iTunes purchases, App Store purchases, computer authorizations... etc. Forget about the new Apple ID you just created.

  • Loadjava fails; create java source succeeds

    When using loadjava to load a Java class into the database I receive the following error:
    C:\OEMNT\bin>loadjava -user us/pw@db -verbose -resolve HelloWorld.class
    initialization complete
    loading : HelloWorld
    Error while loading HelloWorld
    ORA-00942: table or view does not exist
    creating : HelloWorld
    Error while creating class HelloWorld
    ORA-29506: invalid query derived from USING clause
    ORA-00942: table or view does not exist
    resolver :
    resolving: HelloWorld
    Error while resolving class HelloWorld
    ORA-04043: object HelloWorld does not exist
    loadjava: 3 errors
    When using the CREATE JAVA SOURCE command from SQL the Java source + Class is created without problems.
    It seems loadjava wants to insert or check something in a table. But what table?

    Hi,
    Omitting -jarasresource is the first step.
    You probably need to specify -recursivejars in cas there are jars in your jars.
    Also use -genmissing option in case some classes are still missing in the jars files you've loaded.
    Kuassi http://db360.blogspot.com

Maybe you are looking for