Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stephendfrancis

    String Manipulation

    I'd like to try and help, but I'm a little confused about what the actual problem is! My understanding of the problem is that the call to window.WriteToScreen( String ) does not wrap long strings being output to the console window. I wonder if the problem with the code above is one of those...
  2. stephendfrancis

    If Else statements making System.out.print(); not work?

    As an alternative approach, how about the following: import java.util.Hashtable; Hashtable hList = new Hashtable(); hList.put( "A+", "\n\nThe numeric letter value is 4" ); hList.put( "A" , "\n\nThe numeric letter value is 4" ); hList.put( "A-&quot...
  3. stephendfrancis

    Date Formatting and Parsing

    In most languages, date parsing and formatting (converting strings to/from an internal date format) can be a complicated business. Java provides several APIs to help: java.text.DateFormat java.text.SimpleDateFormat java.util.Date java.util.Calendar java.util.TimeZone strictly speaking...
  4. stephendfrancis

    forName("setMethod")

    If "yourClass" is a Class object represent your class, "yourInst" is an instance of your class, and strMethod is a string containing the name of the method to be invoked, then there are 2 approaches, depending on whether all the methods have unique names or whether at least...
  5. stephendfrancis

    Newbie Question: Would Java allow me to do this....

    My suggestion would be to use a database table instead of a file - databases are designed for simultaneous multi-process querying and updating - and to use JSP instead of Applets. Then the client processes are all executed on the server and the only thing crossing the network is HTML. One of...
  6. stephendfrancis

    how can i get month string from date string?

    If your date is stored as a java.util.Date object, then the easiest way I know of controlling its display is to use the SimpleDateFormat object: import java.text.SimpleDateFormat; ... SimpleDateFormat sdf = new SimpleDateFormat( "MMM" ); String strMonth = sdf.format( dDate ); ... If...
  7. stephendfrancis

    Date Parsing in Java

    Date parsing seems to be a difficult area in most languages. I'm looking for a reliable way of doing it using standard Java libraries. My current approach is: ... public static SimpleDateFormat sdf = new SimpleDateFormat( "dd/MM/yyyy" ); ... java.util.Date dDate = sdf.parse( strValue...

Part and Inventory Search

Back
Top