35,618 Topics

Member Avatar for
Member Avatar for nomin-ginger

i have a very long string like this: [ICODE]TGTGCAACGTATATTCCAACGAAAAACCTGGAGAAGAAAAGAATAAGTAAAATGAACTAGAGGCTGATGGCACAGTAAACACAAATGCCTGAAGTCAAAATACATTCTTTATAAGCCCAAAGCG[/ICODE] i want to convert it into array but i wanna split it by length of 5 array elements: [ICODE]array[0] = "TGTGC"; array[1] = "AACGT"; ..... array[n] = "AAGCG";[/ICODE] any idea? plz....... help thanks :)

Member Avatar for sathya88
0
316
Member Avatar for zaxahmed

I'm trying to draw the rhombus into each grid section of the 3x3 square grid. Both the codes are pasted. I've tried various methods but could not succeed. Any insight on this matter is greatly appreciated. Thank you. [B][U]3x3 square grid[/U][/B] [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class threebythree …

Member Avatar for NormR1
0
168
Member Avatar for abhinavM

I want to create a new variable with each run of this while loop the syntax of loop is [CODE]while(rs.next() && i<=num) { String str(i)=rs.getString(1); }[/CODE] I want that with each run the value of i should be appended with str so that with each run a new string variable …

Member Avatar for Majestics
0
12K
Member Avatar for sarathsshanker

hi, im new to MVCin netbeans and,i intend to create a frame set such as this [code]<FRAME name="left" src="menu.html" frameborder="0" border="1" marginheight="0" marginwidth="0" scrolling="auto" noresize> <FRAME name="right" src="right.html" frameborder="0" border="0" borderColor="#525252" scrolling="auto">[/code] in the index.jsp, after creating the main and right html files i ran the application and it worked,the …

0
51
Member Avatar for Armanious

Hi guys, I'm trying to create a "pool" of data that once added to is saved on a public domain. For example, data is stored at "url.com/data.txt". data.txt: [CODE]18473,948263,384292,47239,[/CODE] Client 1 connects to some url (which I need help with, thinking some PHP) with data as arguments. Adds: 39458,359835 Client …

Member Avatar for JeffGrigg
0
153
Member Avatar for kimpham

Hi All, I have the page using iframe and every time the browser timeout and I want to logout by clicking on the "logout" button the page is displayed the content of logout.jsp instead of the logout page. This issue is only happened with Chrome browser - The FireFox and …

Member Avatar for peter_budo
0
144
Member Avatar for WishfulThinking

I am interested in a currency converter made from JAVA. I'm a beginner in learning JAVA programming language. I am thinking well I want the code to go out and get the current value of the US dollar and the current value of the EURO. Next I want it to …

Member Avatar for javaAddict
0
373
Member Avatar for sagngh8

Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When …

Member Avatar for jingda
0
222
Member Avatar for abhinavM

I have a jsp page where I am accessing data from the database and showing the data in table on the browser with radio buttons in between.And then there is a submit button on whose click the control is transferred to a servlet where I reading the status of the …

0
80
Member Avatar for sheennave

Hi ! I've been trying to integrate hibernate with spring framework for a week by using hibernate annotations. I am using hibernate-distribution 3.6.5 final and Spring framework 3.0.5 in the application. Error log looks like as below which troubles me a lot. Any piece of idea will be appreciated, please …

0
232
Member Avatar for lena1990

hi i have combobox and list i want to put both of them in one border help me please

Member Avatar for lena1990
0
84
Member Avatar for Kimpl

I've been working on compression and decompression between Java and C#, using deflate and inflate. Everything else I tried produced varying results which were never able to be compressed/decompressed flawlessly between Java and C#. I tested out using DeflateStream (C#) to compress data, and InflaterInputStream (Java) to decompress the data, …

Member Avatar for Kimpl
0
230
Member Avatar for sheennave

Hi all, I'm using Hibernate, HSQL and Spring. But i have the following ugly errors. I don't know what to do. Any help will be appreciated. [code=text]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate …

Member Avatar for sheennave
0
415
Member Avatar for sirin_adam

Hello! I need to read from a txt file ip:port (or in some lines ip:portDdateCinteger). But i can not do it because there is no nextChar method on Scanner class. The txt file is like this: 332.234.32.11.11.222:8080 123.32.45.43.32.11:8976D12.01.2010C5 44.44.111.114.44.43:220 222.333.44.55.66.77:8089 111.11.11.11.22.33:8080D01.01.2009C1 ... There are million line on txt file. I …

Member Avatar for sirin_adam
0
842
Member Avatar for ishwar panjari

hi sir, i am developing project in java for enabling and disabling task manager and usb-port. i search this in so many website but still i did not get code of this. i want code for window xp that is update value in window registry so i can achieve the …

Member Avatar for NormR1
0
62
Member Avatar for Majestics
Member Avatar for Ezzaral
0
96
Member Avatar for klenne

Hi, I'm trying to check the login. The values of id and pw are send from a textbox and the values of userid and password are from a mysql database. I try to compare them and if they are equal i want to return true and else return false. But …

Member Avatar for klenne
0
272
Member Avatar for kehayov

[CODE]public class TestMySource { public static void main(String args[]) throws java.io.IOException{ char ch; for (;;) { System.out.print("Please insert a char: "); ch = (char) System.in.read(); if (ch == '.') { break; } } } }[/CODE] output: Please insert a char: Please insert a char: Please insert a char: a Please …

Member Avatar for JeffGrigg
0
162
Member Avatar for betny

Hi,Someone please shade somelight about this- how arguments are to be passed from a run.bat file Thanks Best Regards Bethuel

Member Avatar for thines01
0
319
Member Avatar for vishal1949

I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It …

Member Avatar for thines01
0
2K
Member Avatar for zaxahmed

Hello all! I am a completely new to programming in Java and I was recently given a tutorial in which I was supposed to create a 3x3 square grid. I am attaching a file as to give you a clear picture of what I must do. I have no idea …

Member Avatar for hfx642
0
391
Member Avatar for Aviras

Hello everyone. I've been programming on a co-op RPG for quite some time now, but my networking side has seen some troubles. I'm using the lower level serverSocket-Socket way. Everything runs flawless within my own network, however connection over the internet is where the trouble is. I understand this is …

Member Avatar for Aviras
0
285
Member Avatar for anand01

Hai all, AM trying to connect java with database .I created class called data manager with several methods like setdburl(), getdnurl() ,etc.. i called the set functions inside another class and assign values. in set method i assigned LOCAL VARIABLE. when i call get url method it shows null value.. …

Member Avatar for anand01
0
144
Member Avatar for Majestics

How to keep look and feel of java program as classic windows style , even the style of the windows change to windows xp look, or aero look? I mean permenantly keeping classic look? Has any one has any idea? Thank you............... for any advice , help... :)

Member Avatar for Majestics
0
166
Member Avatar for sathya88

some commands working properly(notepad ,control(control panel))... but how to execute commands "dir" like that my code is ... [CODE] public class test1{ public static void main(String args[])throws Exception{ Runtime r= Runtime.getRuntime(); Process p1=r.exec("notepad");//working fine Process p2=r.exec("control");//working fine Process p3=r.exec("test1.java");//cannot run Process p4=r.exec("dir");// cannot run } } o/p: F:\studies\java\test>java test1 Exception …

Member Avatar for JamesCherrill
0
8K
Member Avatar for betny

[code=text]SET CLASSPATH_JARS=../../lib/log4j/log4j-1.2.14.jar SET BUILD_CLASS_DIR_IMPLEMENTATION=BUILD_LOCAL\implementation\build\classes SET RUN_CLASSPATH=%BUILD_CLASS_DIR_IMPLEMENTATION%;%CLASSPATH_JARS% SET CLASS_TO_RUN=chepsoft.micro.javadoc.workerapplication.WorkerApplication SET ARGUMENTS=Worker implementation by WorkerImpl ECHO CLASSPATH_JARS=%CLASSPATH_JARS% ECHO BUILD_CLASS_DIR_IMPLEMENTATION=%BUILD_CLASS_DIR_IMPLEMENTATION% ECHO RUN_CLASSPATH=%RUN_CLASSPATH% ECHO CLASS_TO_RUN=%CLASS_TO_RUN% java -classpath %RUN_CLASSPATH% %CLASS_TO_RUN% %ARGUMENTS% %1String name = "Bethuel", %2String workerType = "Monthly Employee", %3double salary = 22000d,[/code] if i want to pass the above variables from run.bat file …

Member Avatar for peter_budo
0
162
Member Avatar for bluerabbit

for my web application I am needed to reply short code SMS queries over HTTP. how can i integrate the service provider API with jsp and servlets. I am using jboss, Tomcat and MySql. Developers API are given below : Bulk SMS API Documentation (Single/multiple SMS via HTTP) for website/software …

0
119
Member Avatar for mith_cool

Instance variable does mean you will get new value with every new object created of particular class rite? I tried it myself eg: [CODE]class simpleinstcheck { static int i; void incr() { System.out.println(i++); } public static void main(String args[]) { simpleinstcheck sc= new simpleinstcheck(); sc.incr(); simpleinstcheck sc1= new simpleinstcheck(); sc1.incr(); …

Member Avatar for JamesCherrill
0
176
Member Avatar for afaquemanzoor
Member Avatar for JeffGrigg
0
112
Member Avatar for yt0729

I am doing several choice box in JFrame.But i have some problems.Can anyone help me. 1)Currently doing a loop to add no1 until 50 into choice box.But it doesn't work. [CODE]int [] number = new int[50]; for(int i=0;i<50;i++) { number[i] = i; for(int i = 0;i<50;i++) { c1.add(number[i]); }[/CODE] 2)I …

Member Avatar for mKorbel
0
190

The End.