Click here to Skip to main content
15,911,306 members
Home / Discussions / Java
   

Java

 
Questionjava coding Pin
hitesh.kalra30-Aug-09 23:20
hitesh.kalra30-Aug-09 23:20 
AnswerRe: java coding Pin
427748030-Aug-09 23:48
427748030-Aug-09 23:48 
QuestionSVD of image using JAMA.. Pin
ankita0529-Aug-09 20:51
ankita0529-Aug-09 20:51 
AnswerRe: SVD of image using JAMA.. Pin
427748030-Aug-09 12:06
427748030-Aug-09 12:06 
GeneralRe: SVD of image using JAMA.. Pin
ankita0530-Aug-09 15:42
ankita0530-Aug-09 15:42 
QuestionRegarding jdk 1.6 features Pin
kirancgi29-Aug-09 20:23
kirancgi29-Aug-09 20:23 
AnswerRe: Regarding jdk 1.6 features Pin
427748030-Aug-09 12:09
427748030-Aug-09 12:09 
Questiongo through an HTML file and create a list of all the bold and italic words Pin
Sadaiyappan29-Aug-09 9:14
Sadaiyappan29-Aug-09 9:14 
Okay,   I have included my code below.   I am supposed to have the user input a html file name (i got that part down) and then i'm supposed to look at the file and make two lists of words, one of words that are italicized between <i> </i> and one of words that are bold between <b> </b>.   So I need to know how to do this.   I think I should use a regular expression?   Am I rite?   regular expression looking for the <b> and </b> tag and creating anything in between as a string that I add to a string container.   then i print the string container as output.   is this okay?   can you help me with the regular expression?   Smile | :)    Smile | :)


<pre>package final_project_2;

import java.io.*;
import javax.swing.*;


public class Main {

      public static void main(String[] args) {

         try{
            BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

            System.out.println("Please enter the name of the file: ");

            String line = input.readLine();

            FileInputStream in = null;

            in = new FileInputStream(line);
         }
         catch (IOException e)
         {
                  JOptionPane.showMessageDialog(null, "IOException: " + e.getMessage());
         }
      }
}</pre>
AnswerRe: go through an HTML file and create a list of all the bold and italic words Pin
427748030-Aug-09 12:18
427748030-Aug-09 12:18 
QuestionJava code of Vernam Cipher Algorithm Pin
Munna Bhagat28-Aug-09 6:50
Munna Bhagat28-Aug-09 6:50 
AnswerRe: Java code of Vernam Cipher Algorithm Pin
David Crow28-Aug-09 8:42
David Crow28-Aug-09 8:42 
AnswerRe: Java code of Vernam Cipher Algorithm Pin
427748030-Aug-09 12:22
427748030-Aug-09 12:22 
Questionmaking msn plugin using java [modified] Pin
Muhammad Adeel Zahid28-Aug-09 6:45
Muhammad Adeel Zahid28-Aug-09 6:45 
AnswerRe: making msn plugin using java Pin
42774802-Sep-09 7:21
42774802-Sep-09 7:21 
QuestionRe: making msn plugin using java Pin
Muhammad Adeel Zahid2-Sep-09 11:38
Muhammad Adeel Zahid2-Sep-09 11:38 
AnswerRe: making msn plugin using java Pin
42774802-Sep-09 17:51
42774802-Sep-09 17:51 
QuestionRe: making msn plugin using java [modified] Pin
Muhammad Adeel Zahid22-Oct-09 1:45
Muhammad Adeel Zahid22-Oct-09 1:45 
QuestionRe: making msn plugin using java [modified] Pin
Muhammad Adeel Zahid4-Nov-09 19:47
Muhammad Adeel Zahid4-Nov-09 19:47 
QuestionSlow performance of javax.swing.JOptionPane.showOptionDialog Pin
Pasan Eeriyagama26-Aug-09 15:22
Pasan Eeriyagama26-Aug-09 15:22 
AnswerRe: Slow performance of javax.swing.JOptionPane.showOptionDialog Pin
Nagy Vilmos26-Aug-09 22:03
professionalNagy Vilmos26-Aug-09 22:03 
GeneralRe: Slow performance of javax.swing.JOptionPane.showOptionDialog Pin
Pasan Eeriyagama27-Aug-09 1:36
Pasan Eeriyagama27-Aug-09 1:36 
GeneralRe: Slow performance of javax.swing.JOptionPane.showOptionDialog Pin
woo_378304-Jun-10 21:44
woo_378304-Jun-10 21:44 
GeneralRe: Slow performance of javax.swing.JOptionPane.showOptionDialog Pin
woo_378304-Jun-10 21:49
woo_378304-Jun-10 21:49 
GeneralRe: Slow performance of javax.swing.JOptionPane.showOptionDialog Pin
woo_378304-Jun-10 21:51
woo_378304-Jun-10 21:51 
QuestionHelp! on concatenation Pin
hellboy_8326-Aug-09 10:53
hellboy_8326-Aug-09 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.