Вход на сайт
Что-то ява стала быстро работать
NEW 12.01.04 13:23
в ответ Simple 12.01.04 12:20
Все эти сановские спецификации для Й2ЕЕ ваще очень мощная штука
Согласен на все 100% :-)
а делать большие проекты куда проще, чем, например, на с++.
Бросай С++, переходи на С# ;-Р:-))
Да и думать много не надо - тоже + :)
Ето не просто +, а конкретный такой жирный +! ;-)
Согласен на все 100% :-)
а делать большие проекты куда проще, чем, например, на с++.
Бросай С++, переходи на С# ;-Р:-))
Да и думать много не надо - тоже + :)
Ето не просто +, а конкретный такой жирный +! ;-)
NEW 12.01.04 13:48
в ответ Tomasson 12.01.04 13:25
Слушай, я просто высказал свое отношение. Чего взъелся, как будто я тебе на любимый мозоль наступил?
АПИ у явы много чего не позволяет, чего позволяют другие (тот же дотнет). Скажешь, нет? И только не надо говорить, что тебе хватает. Кому-то хватает, кому-то нет - это дело такое.
--------------------
Самогон "Петрович". Люблю тебя, Петра творение...
АПИ у явы много чего не позволяет, чего позволяют другие (тот же дотнет). Скажешь, нет? И только не надо говорить, что тебе хватает. Кому-то хватает, кому-то нет - это дело такое.
--------------------
Самогон "Петрович". Люблю тебя, Петра творение...
NEW 12.01.04 13:50
в ответ Simple 12.01.04 13:38
Может ты еще против абортов и клонирования?! ;-() :-)) Шутка:-)
Не нравятся, потому что они хуже или потому что тебе не хочется уходить от c++, судя по всему, уже хорошо знакомому? :-)
Ето разные вещи, как и неприятие нового и преданность лучшему и надежному:-))
Не нравятся, потому что они хуже или потому что тебе не хочется уходить от c++, судя по всему, уже хорошо знакомому? :-)
Ето разные вещи, как и неприятие нового и преданность лучшему и надежному:-))
13.01.04 15:03
в ответ Findеr 11.01.04 23:22
Rebjata ja znaju chto ja tut ne v temu soverschenno, no ochenn nuzna pomosch. Kto nibudd znaet kak eto delatt?public interface Matcher {
public boolean find(String item, String line,0);
}
The method find() in the inteface Matcher searchs for a specific string within another string; the method must return true if the former exists in the latter string. For example: myMatcher.find("cat", "The cat in the hat.") is true, but myMatcher.find("dog", "The cat in the hat.") is false.
You are supposed to implement the interface in two ways:
an algorithmic approach by using nested loops and the methods charAt() and length() from the String class to implement the string search operation
a wrapper around the method indexOf() from the String class
Test both implementations with an appropriate test harness. E.g. verify that the following conditions are met:
the empty string is contained in every string
every string is contained in itself
boundry check, e.g. myMatcher.find("a", "abcd") as well as myMatcher.find("d", "abcd") is true
Eto moja domaschnaja rabota po JAVA. Voobscheto ejo segodnja nuzno bilo sdatt. No ja dumaju chto lusche pozdno chem nikogda. Pomogite chem smozete PLEEEAAASE!!!!

public boolean find(String item, String line,0);
}
The method find() in the inteface Matcher searchs for a specific string within another string; the method must return true if the former exists in the latter string. For example: myMatcher.find("cat", "The cat in the hat.") is true, but myMatcher.find("dog", "The cat in the hat.") is false.
You are supposed to implement the interface in two ways:
an algorithmic approach by using nested loops and the methods charAt() and length() from the String class to implement the string search operation
a wrapper around the method indexOf() from the String class
Test both implementations with an appropriate test harness. E.g. verify that the following conditions are met:
the empty string is contained in every string
every string is contained in itself
boundry check, e.g. myMatcher.find("a", "abcd") as well as myMatcher.find("d", "abcd") is true
Eto moja domaschnaja rabota po JAVA. Voobscheto ejo segodnja nuzno bilo sdatt. No ja dumaju chto lusche pozdno chem nikogda. Pomogite chem smozete PLEEEAAASE!!!!




NEW 13.01.04 15:32
в ответ Rizaja Bestija 13.01.04 15:03
1. Открываем книгу и читаем, что такое interface и как его использовать.
2. Открываем раздел, посвященный работе со String. Уделяем особое внимание функциям charAt(), length(), indexOf(). Смотри также здесь: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html
3. В начале функции делаешь проверки:
а) если item равно line, то return true
б) если item пустая, то также return true
4. смотри методы compareTo(Object o), endsWith(String suffix), equals(Object anObject), lastIndexOf(...), startsWith(...)
Надеюсь, это поможет:-)
2. Открываем раздел, посвященный работе со String. Уделяем особое внимание функциям charAt(), length(), indexOf(). Смотри также здесь: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html
3. В начале функции делаешь проверки:
а) если item равно line, то return true
б) если item пустая, то также return true
4. смотри методы compareTo(Object o), endsWith(String suffix), equals(Object anObject), lastIndexOf(...), startsWith(...)
Надеюсь, это поможет:-)